cabal-gild-1.5.0.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Unstable.Type.Variable

Synopsis

Documentation

data Variable Source #

Similar to ConfVar, but with different parsing and pretty-printing behavior.

Instances

Instances details
Show Variable Source # 
Instance details

Defined in CabalGild.Unstable.Type.Variable

Eq Variable Source # 
Instance details

Defined in CabalGild.Unstable.Type.Variable

parseVariable :: CabalParsing m => m Variable Source #

Parses a Variable. This is generally as permissive as possible.

parseArch :: CabalParsing m => m Arch Source #

Parses an Arch.

parseOs :: CabalParsing m => m OS Source #

Parses an Os.

parseIdent :: CabalParsing m => m String Source #

Parses an identifier. This is more permissive than anything provided by Cabal. Any run of alphanumeric characters, underscores, or hyphens is considered an identifier.

prettyVariable :: Variable -> Doc Source #

Pretty-prints a Variable.