@hackage hpath-io0.12.0
High-level IO operations on files/directories
Categories
License
BSD-3-Clause
Maintainer
Julian Ospald <hasufell@posteo.de>
Links
Versions
Installation
Tested Compilers
Dependencies (13)
- IfElse
- base >=4.8 && <5
- bytestring >=0.10.0.0
- exceptions
- hpath >=0.11 && <0.12
- hpath-filepath >=0.10.2 && <0.11 Show all…
Dependents (2)
@hackage/ghcup, @hackage/tar-bytestring
HPath-IO
High-level IO operations on files/directories, utilizing type-safe Paths.
This package is part of the HPath suite, also check out hpath and hpath-filepath.
Motivation
The motivation came during development of hsfm in order to have a proper high-level API of file related operations, while utilizing type-safe Paths.
Goals
- high-level API to file operations like recursive directory copy
- still allowing sufficient control to interact with the underlying low-level calls
- unit-testing exceptions (because yes, people may rely on them)
Note: this library was written for posix systems and it will probably not support other systems.
Differences to 'posix-paths'
- has a custom versions of
openFdwhich allows more control over the flags than its unix package counterpart - adds a
getDirectoryContents'version that works on Fd
