Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PathComponent
- pathComponent :: MonadFail m => ByteString -> m PathComponent
- isPathComponent :: ByteString -> Bool
- getPC :: PathComponent -> ByteString
- slashify :: PathComponent -> ByteString
- splitPathComponents :: MonadFail m => RawFilePath -> m [PathComponent]
Documentation
data PathComponent Source #
The restricted subset of ByteString
s that are valid names in a POSIX path.
Instances
pathComponent :: MonadFail m => ByteString -> m PathComponent Source #
Safe constructor for PathComponent
isPathComponent :: ByteString -> Bool Source #
True when pathComponent
will result in a Just
getPC :: PathComponent -> ByteString Source #
Get the ByteString
out of a PathComponent
slashify :: PathComponent -> ByteString Source #
Add a trailing /
unconditionally.
splitPathComponents :: MonadFail m => RawFilePath -> m [PathComponent] Source #
A version of splitDirectories
for PathComponent
s.