drasil-build-artifacts-0.1.1.0: A framework for code and document generation for scientific software - build-artifacts SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Drasil.Build.Artifacts.FilePath

Synopsis

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.

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.