Commit Graph

167 Commits

Author SHA1 Message Date
646fe7cfea
Doc update 2016-05-18 13:42:31 +02:00
1bf27258c1
Uhm 2016-05-18 13:33:17 +02:00
797dcaf725
Backport changes from posix-paths PR:
* add isFileName
* add hasParentDir
* add hiddenFile
* add our own openFd version for more control
* small documentation improvements
* add a getDirectoryContents' version that works on Fd
* fix linting warnings
* lift version constraints in benchmark

Also adjust HPath.IO to work with the new API.
2016-05-18 04:11:40 +02:00
0fa66cd581
Use sendfile for copying and read/write as fallback 2016-05-18 03:47:39 +02:00
ee3ace362b
HPath.IO: minor doc fix 2016-05-10 12:05:55 +02:00
05fcad14f1
HPath.IO.Errors: minor documentation fix 2016-05-10 02:02:05 +02:00
456af3b1ab
Release 0.6.0 2016-05-10 00:45:40 +02:00
f841a53985
HPath.IO: pretty 2016-05-10 00:36:51 +02:00
eb27c368e6
HPath.IO.Errors: explicit exports, improve haddock compat 2016-05-10 00:35:33 +02:00
c76df7f159
HPath.IO: small cleanup 2016-05-10 00:28:04 +02:00
613754c58f
HPath.IO: just do 'return ()' on unsupported file types where possible
Breaking the callstack with an ioError seems a bit harsh here.
2016-05-10 00:27:46 +02:00
d8b0b99edf
HPath.IO.Errors: provide all exception constructor checkers 2016-05-10 00:13:14 +02:00
794c3a2fc4
HPath.IO.Errors: remove obsolete HPathIOException constructors 2016-05-10 00:12:43 +02:00
8a28a5dd0f
HPath.IO.Errors: fix throwDestinationInSource
'canonicalizePath' was missing, making this function far less reliable.
In order for this to work we have to work around circular imports
with a IO.hs-boot file.
2016-05-10 00:11:42 +02:00
78a3baeb25
Export PathException 2016-05-09 19:34:19 +02:00
a3b1528974
Raise cabal version to fix travis build 2016-05-09 19:15:18 +02:00
7aac9bcb93
Adjust description 2016-05-09 19:06:31 +02:00
930b021a32
Add missing (<$>) imports 2016-05-09 18:53:26 +02:00
6b6c7f05c9
Try to fix travis build 2016-05-09 18:39:13 +02:00
a83e96259f
Fix build with bytestring >= 0.10.8 2016-05-09 18:17:33 +02:00
14b48515a2
Add TODO to _copyFile 2016-05-09 18:15:05 +02:00
820bf8814d
Fix build with GHC versions prior 7.10.x 2016-05-09 18:14:08 +02:00
e18d2dd2d6
Remove ghc versions that don't have PatternSynonyms 2016-05-09 18:13:34 +02:00
117b3dc7d7
Add travis icon to README 2016-05-09 18:06:40 +02:00
c0ceccf716
Add travis build 2016-05-09 18:04:28 +02:00
010756e190
Fix cabal file 2016-05-09 18:03:27 +02:00
9a4fd00710
Release 0.5.9 2016-05-09 17:37:33 +02:00
f27becc4df
Cleanup, improve docs 2016-05-09 17:37:16 +02:00
3bbde22377
Add 'hiddenFile' to System.Posix.FilePath 2016-05-09 17:37:00 +02:00
3da8533b48
Remove 'normalize' from HPath, since it's not needed 2016-05-09 17:04:26 +02:00
687a113252
Fix documentation in System.Posix.FilePath 2016-05-09 17:04:01 +02:00
86a4b9ade2
Add IO modules, previously from HSFM 2016-05-09 16:53:31 +02:00
6638cd8cc1
Create HPath.IO module, adding canonicalizePath again 2016-05-09 14:40:30 +02:00
4ce35b9bec
TESTS: minor doctest cleanup 2016-05-09 14:17:12 +02:00
196647a383
Move some functionality from HPath to System.Posix.FilePath
This also removes 'canonicalizePath' from HPath which fixes
the doctest.
2016-05-09 14:16:53 +02:00
cfe626b6d4
Update README 2016-05-09 13:37:21 +02:00
a946387330
Merge posix-paths into hpath 2016-05-09 13:31:20 +02:00
1263fac7ec
Update submodule 2016-05-02 19:10:40 +02:00
45b515d1db
Add withAbsPath/withRelPath/withFnPath 2016-04-17 18:09:50 +02:00
a5360f29a3
Don't re-export functions 2016-04-16 19:21:19 +02:00
f1875da780
Use latest posix-paths
Pending upstream PR.
2016-04-16 19:12:23 +02:00
7e8c745e35
Clean up, rewrite stuff 2016-04-16 18:17:44 +02:00
577ecf6750
Add normalizeAbs, which may or may not be useful 2016-04-15 14:23:25 +02:00
8f7e5806e3
Be more strict
* don't rely on OverloadedString
* make basename fail if run on root dir "/"
* reject "." and ".." in filename parser
* reject ".." in path parsers
* normalise paths in parsers
2016-04-15 14:23:07 +02:00
c570505297
Add hiddenFile function 2016-04-10 21:50:52 +02:00
148eeb619f
Implement String -> ByteString and vice versa conversion for filepaths 2016-04-05 00:55:25 +02:00
877d8c4089
Implement equalFilePath 2016-04-05 00:54:55 +02:00
8c1bd139c0
Readd TH constructors 2016-04-05 00:54:36 +02:00
bd71947b2a
Use word8 package 2016-04-04 18:46:25 +02:00
491efe44a3
Use ByteString for paths instead of String 2016-04-04 17:29:35 +02:00