| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Dojang.Types.FilePathExpression
Synopsis
- type EnvironmentVariable = Text
- data FilePathExpression
- = BareComponent Text
- | Root (Maybe Char)
- | Concatenation FilePathExpression FilePathExpression
- | PathSeparator FilePathExpression FilePathExpression
- | Substitution EnvironmentVariable
- | SubstitutionWithDefault EnvironmentVariable FilePathExpression
- | ConditionalSubstitution EnvironmentVariable FilePathExpression
- toPathText :: FilePathExpression -> Text
- (++) :: FilePathExpression -> FilePathExpression -> FilePathExpression
- (+/+) :: FilePathExpression -> FilePathExpression -> FilePathExpression
Documentation
type EnvironmentVariable = Text Source #
An environment variable.
data FilePathExpression Source #
An expression that can be used to build a file path.
Constructors
| BareComponent Text | A bare component of a file path. E.g., |
| Root (Maybe Char) | The root of a file path. E.g., |
| Concatenation FilePathExpression FilePathExpression | A concatenation of two |
| PathSeparator FilePathExpression FilePathExpression | A path separator which combines two |
| Substitution EnvironmentVariable | A simple substitution of an environment variable. E.g., |
| SubstitutionWithDefault EnvironmentVariable FilePathExpression | A substitution of an environment variable with a default value for when
the environment variable is not set. E.g., |
| ConditionalSubstitution EnvironmentVariable FilePathExpression | A conditional substitution of an environment variable with an expression
to be expanded if the environment variable is set. E.g., |
Instances
| IsString FilePathExpression Source # | |
Defined in Dojang.Types.FilePathExpression Methods fromString :: String -> FilePathExpression # | |
| Show FilePathExpression Source # | |
Defined in Dojang.Types.FilePathExpression Methods showsPrec :: Int -> FilePathExpression -> ShowS # show :: FilePathExpression -> String # showList :: [FilePathExpression] -> ShowS # | |
| Eq FilePathExpression Source # | |
Defined in Dojang.Types.FilePathExpression Methods (==) :: FilePathExpression -> FilePathExpression -> Bool # (/=) :: FilePathExpression -> FilePathExpression -> Bool # | |
| Hashable FilePathExpression Source # | |
Defined in Dojang.Types.FilePathExpression | |
toPathText :: FilePathExpression -> Text Source #
Converts a FilePathExpression to a textual representation.
(++) :: FilePathExpression -> FilePathExpression -> FilePathExpression infixl 5 Source #
Concatenates two FilePathExpressions. A synonym for Concatenation.
(+/+) :: FilePathExpression -> FilePathExpression -> FilePathExpression infixl 5 Source #
Combines two FilePathExpressions with a path separator. A synonym for
PathSeparator.