path-like - Type classes for the Path library.
This library exports type classes
DirLike which serve as a
common interface for compiling types down to
Path b File and
Path b Dir.
The only contract that should be respected is that your type should be at least
as strict as the
Path type itself, i.e no String/FilePath instances. This is
the case with the within type.
This library also exports a concatenation function
(/>) which defers to the
(</>) function in
Path, but works for any
PathLike Rel. This may change to shadow the existing definition if these
classes turn out to be generally useful. They tend to be particularly useful for
generalising file IO, but you may find you need to cast more when you first
Path using TemplateHaskell.
For more information see the path library documentation.
Changelog for path-like
- Revert ConstraintKinds mess.
- Add ’PathLike
DirLiketype class for using stricter types as
Path b Fileand
Path b Dirrespectively.
(/>)combinator for producing a