Commit Graph

19 Commits

Author SHA1 Message Date
3e6d93182a
Abstract over Path more properly
We don't expect "Path Abs" everywhere anymore. The functions
have been made to be more generic. A user can still pass
absolute paths, so we don't lose any safety. However, some
function implementations may be more tricky.
2018-04-11 01:11:00 +02:00
0ec2cf8ca5 Add writeFile and appendFile 2018-04-06 17:22:38 +02:00
9ac10a6a7d Add file reading functions 2018-04-06 16:42:40 +02:00
3baecb7b51
Improve CopyDirRecursiveCollectFailures tests 2016-06-14 19:32:33 +02:00
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
5b08e14b55
Add createDirRecursive, fixes #6 2016-06-13 01:28:55 +02:00
a31c9d1e88
Improve documentation and tests for file creation 2016-06-05 21:59:31 +02:00
a1eb06324f
Rm unused imports 2016-06-05 16:09:34 +02:00
d708f80a1f
TESTS: don't assume ordering of exceptions 2016-06-05 15:37:26 +02:00
f07619b7c6
TESTS: fix before/after 2016-06-05 15:25:57 +02:00
c5bcb90b65
TESTS: don't use lazy IO -.- 2016-06-05 14:55:21 +02:00
bc348c7dd5
TESTS: less side effects plz 2016-06-05 14:33:53 +02:00
5d1c5cc2ce
Fix linter warning 2016-06-05 03:26:05 +02:00
8f6ca81d22
Add tests to RecreateSymlinkOverwriteSpec 2016-06-05 03:22:35 +02:00
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
8d948366f9
Add hspec for createSymlink 2016-05-29 17:43:43 +02:00
395621b27a
Fix tests for sdist
We now create the necessary directories and files
for the tests on-the-fly.
2016-05-29 17:29:13 +02:00
930b021a32
Add missing (<$>) imports 2016-05-09 18:53:26 +02:00
86a4b9ade2
Add IO modules, previously from HSFM 2016-05-09 16:53:31 +02:00