Module
Pathy.Phantom
- Package
- pathy
- Repository
- id3as/purescript-pathy
#IsRelOrAbs Source
class IsRelOrAbs :: RelOrAbs -> Constraint
class IsRelOrAbs a where
A class that enables writing operations that abstract over RelOrAbs
.
The provided onRelOrAbs
function folds over a value indexed by
RelOrAbs
to produce a new result, passing proof/coercion functions to
allow the inner functions to unify their return types if remapping.
Members
onRelOrAbs :: forall (f :: RelOrAbs -> DirOrFile -> Type) b r. ((f Rel b -> f a b) -> f Rel b -> r) -> ((f Abs b -> f a b) -> f Abs b -> r) -> f a b -> r
Instances
#foldRelOrAbs Source
foldRelOrAbs :: forall f a b r. IsRelOrAbs a => (f Rel b -> r) -> (f Abs b -> r) -> f a b -> r
Folds over a value that uses RelOrAbs
to produce a new result.
#IsDirOrFile Source
class IsDirOrFile :: DirOrFile -> Constraint
class IsDirOrFile b where
A class that enables writing operations that abstract over DirOrFile
.
The provided onDirOrFile
function folds over a value indexed by
DirOrFile
to produce a new result, passing proof/coercion functions to
allow the inner functions to unify their return types if remapping.
Members
onDirOrFile :: forall f r. ((f Dir -> f b) -> f Dir -> r) -> ((f File -> f b) -> f File -> r) -> f b -> r
Instances
#foldDirOrFile Source
foldDirOrFile :: forall f b r. IsDirOrFile b => (f Dir -> r) -> (f File -> r) -> f b -> r
Folds over a value that uses DirOrFile
to produce a new result.