Streamly.FileSystem.Path.Seg
Types
Constraint to check if a type has Rooted or Branch annotations.
Instances
IsSeg (Branch a) Source # | |
Defined in Streamly.Internal.FileSystem.PosixPath.Seg | |
IsSeg (Rooted a) Source # | |
Defined in Streamly.Internal.FileSystem.PosixPath.Seg |
Statically Verified Path Literals
Quasiquoters.
rt :: QuasiQuoter Source #
Generates a Rooted Path
type from a quoted literal.
>>>
Path.toString ([rt|/usr|] :: Rooted PosixPath)
"/usr"
br :: QuasiQuoter Source #
Generates a Branch Path
type from a quoted literal.
>>>
Path.toString ([br|usr|] :: Branch PosixPath)
"usr"
Statically Verified Path Strings
Template Haskell expression splices.