Commit Graph

116 Commits

Author SHA1 Message Date
Julian Ospald 5d5b0ae3c1
Add missing language pragma 2016-06-14 19:32:14 +02:00
Julian Ospald f47c8edb42
Fix build for GHC < 7.10 2016-06-14 19:21:03 +02:00
Julian Ospald ef66a24f87
Improve error handling
* remove some obsolete functions and error types from HPath.IO.Errors
  that are completely unused
* reworked the RecursiveFailure type to contain more information,
  so we can use it to programmatically make useful choices
  without examining the weakly types IO error attributes (like
  'ioGetFileName')
2016-06-14 19:13:25 +02:00
Julian Ospald f6a5cb8668
Add test to basename 2016-06-13 13:51:53 +02:00
Julian Ospald 4dec385332
Improve createDirRecursive 2016-06-13 01:38:44 +02:00
Julian Ospald 5b08e14b55
Add createDirRecursive, fixes #6 2016-06-13 01:28:55 +02:00
Julian Ospald ac381cbf60
Improve documentation 2016-06-05 22:19:30 +02:00
Julian Ospald ce7fdcdcd6
Move documentation note about RecursiveFailure where it belongs 2016-06-05 22:04:16 +02:00
Julian Ospald a31c9d1e88
Improve documentation and tests for file creation 2016-06-05 21:59:31 +02:00
Julian Ospald a5942ff026
Use IfElse package for whenM/unlessM 2016-06-05 21:52:52 +02:00
Julian Ospald 92017ab630
Make createRegularFile and createDir accept FileMode parameter 2016-06-05 17:46:25 +02:00
Julian Ospald 16af98b32d
Be more specific about Overwrite mode 2016-06-05 16:38:54 +02:00
Julian Ospald 6da01e382f
Improve documentation 2016-06-05 16:31:08 +02:00
Julian Ospald ed06543981
Proper GHC conditionals to fix compiler warnings 2016-06-05 16:16:41 +02:00
Julian Ospald d3eb2fc254
Fix build with GHC-7.8 2016-06-05 16:12:51 +02:00
Julian Ospald d12ce30f57
Fix docs and rename RecursiveMode to RecursiveErrorMode 2016-06-05 16:07:46 +02:00
Julian Ospald 7a6f0e8728
Fix spelling 2016-06-05 16:00:15 +02:00
Julian Ospald 7ed5829d47
Fix documentation 2016-06-05 15:57:41 +02:00
Julian Ospald a27d4ed55d
Improve documentation 2016-06-05 03:22:11 +02:00
Julian Ospald 64ae6db83a
New API: use CopyMode for overwriting and introduce RecursiveMode
This allows to specify the behavior on recursive operations,
such that one can collect failures instead of dying on the first
failure.
2016-06-05 03:13:33 +02:00
Julian Ospald 69dbf6714d
Relicense to BSD3 2016-06-04 00:39:03 +02:00
Julian Ospald bb590a7692
Improve documentation 2016-05-31 16:21:14 +02:00
Julian Ospald 82ea75cc88
Small documentation fix 2016-05-30 17:16:24 +02:00
Julian Ospald 08de2ebefb
Move RelC class from HPath.Internal to HPath 2016-05-30 13:02:34 +02:00
Julian Ospald 21fccc9ca9
Fix build with ghc < 7.10 2016-05-29 18:57:55 +02:00
Julian Ospald 79dbcd8b55
Add type signature to pattern synonym 2016-05-29 17:56:51 +02:00
Julian Ospald 51da8bf5c2
HPath.IO: add createSymlink 2016-05-29 17:28:12 +02:00
Julian Ospald 51609781b2
Add makeRelative and makeValid 2016-05-24 15:31:14 +02:00
Julian Ospald 3cb3a822d7
Add test to equalFilePath 2016-05-24 15:30:56 +02:00
Julian Ospald e66074af1c
Fix stripSuffix' for bytestring < 0.10.8 2016-05-24 03:29:40 +02:00
Julian Ospald 4032629407
Add TODO 2016-05-24 03:26:07 +02:00
Julian Ospald 5ac7450495
Small import fix 2016-05-24 03:26:07 +02:00
Julian Ospald b55cf6d9f3
Fix for bytestring versions less than 0.10.8 2016-05-24 03:26:01 +02:00
Julian Ospald ae9a806c2e
Fix to latest sendfile version to simplify imports 2016-05-24 03:13:36 +02:00
Julian Ospald 9c199c6da2
Rearrange, prettify and improve haddock
This also matches the documentation order from the
filepath package more.
2016-05-24 02:16:16 +02:00
Julian Ospald eb72fce33f
Add splitSearchPath, getSearchPath and stripExtension 2016-05-24 02:07:04 +02:00
Julian Ospald 908513da2b
Prettify doctests 2016-05-23 00:52:27 +02:00
Julian Ospald 47dd729e8a
Small documentation improvements 2016-05-22 13:41:39 +02:00
Julian Ospald 620550dab4
Minor documentation fixes 2016-05-22 13:28:20 +02:00
Julian Ospald 5ed249f5d6
Fix haddock 2016-05-18 14:03:50 +02:00
Julian Ospald a8ccfc2587
Release 0.7.0 2016-05-18 14:02:08 +02:00
Julian Ospald 8fec862304
Rm redundant import 2016-05-18 13:48:38 +02:00
Julian Ospald 646fe7cfea
Doc update 2016-05-18 13:42:31 +02:00
Julian Ospald 1bf27258c1
Uhm 2016-05-18 13:33:17 +02:00
Julian Ospald 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
Julian Ospald 0fa66cd581
Use sendfile for copying and read/write as fallback 2016-05-18 03:47:39 +02:00
Julian Ospald ee3ace362b
HPath.IO: minor doc fix 2016-05-10 12:05:55 +02:00
Julian Ospald 05fcad14f1
HPath.IO.Errors: minor documentation fix 2016-05-10 02:02:05 +02:00
Julian Ospald f841a53985
HPath.IO: pretty 2016-05-10 00:36:51 +02:00
Julian Ospald eb27c368e6
HPath.IO.Errors: explicit exports, improve haddock compat 2016-05-10 00:35:33 +02:00