Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Charon.Data.PathData
Contents
Description
Core PathData
. This intended to be the main
type representing path
data. Actual backends are transformed to/from this type.
Synopsis
- data PathData = UnsafePathData {}
- headerNames :: (IsList a, IsString (Item a)) => a
- originalPathExists :: (HasCallStack, MonadCatch m, MonadPathReader m) => PathData -> m Bool
- isDirectory :: PathData -> Bool
PathData
Data for a path. Maintains an invariant that the original path is not the root nor is it empty.
Constructors
UnsafePathData | |
Fields
|
Instances
originalPathExists :: (HasCallStack, MonadCatch m, MonadPathReader m) => PathData -> m Bool Source #
isDirectory :: PathData -> Bool Source #