Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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.
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 |
Lift (Path a) Source # | |
NFData (Path b) Source # | |
Defined in HPath.Internal |