| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
HPath.Internal
Description
Internal types and functions.
Synopsis
- data Path b = MkPath ByteString
Documentation
Path of some base and type.
Internally is a ByteString. The ByteString can be of two formats only:
- without trailing path separator:
file.txt,foo/bar.txt,/foo/bar.txt - with trailing path separator:
foo/,/foo/bar/
There are no duplicate
path separators //, no .., no ./, no ~/, etc.
Constructors
| MkPath ByteString |
Instances
| Eq (Path b) Source # | ByteString equality. The following property holds: show x == show y ≡ x == y |
| Ord (Path b) Source # | ByteString ordering. The following property holds: show x `compare` show y ≡ x `compare` y |
| Show (Path b) Source # | Same as The following property holds: x == y ≡ show x == show y |
| NFData (Path b) Source # | |
Defined in HPath.Internal | |