| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.Build.Artifacts.FilePath
Synopsis
- data PathSegment
- ps :: QuasiQuoter
- (</>) :: OsPath -> PathSegment -> OsPath
- toPath :: PathSegment -> OsPath
File Path Segments
data PathSegment Source #
Represents a single valid segment of a path (e.g., a file or directory
name, usually the terminal basename of a path). Does not allow path
segments to be any of: `..`, ., nor ~. Assumes case-sensitive equality.
Instances
| Eq PathSegment Source # | |
Defined in Drasil.Build.Artifacts.FilePath | |
| Ord PathSegment Source # | |
Defined in Drasil.Build.Artifacts.FilePath Methods compare :: PathSegment -> PathSegment -> Ordering # (<) :: PathSegment -> PathSegment -> Bool # (<=) :: PathSegment -> PathSegment -> Bool # (>) :: PathSegment -> PathSegment -> Bool # (>=) :: PathSegment -> PathSegment -> Bool # max :: PathSegment -> PathSegment -> PathSegment # min :: PathSegment -> PathSegment -> PathSegment # | |
Construction
ps :: QuasiQuoter Source #
QuasiQuoter for building PathSegments.
Syntax:
ps ::= comp+
comp ::= '{' hsVar '}'
| <any string excl. ., '..', ~, not
including the system-local path sep.>
hsVar ::= string
(</>) :: OsPath -> PathSegment -> OsPath Source #
Append a terminal PathSegment onto a OsPath to form a new OsPath.
Unpacking
toPath :: PathSegment -> OsPath Source #
Retrieve OsPath representation of a PathSegment.