Safe Haskell | None |
---|---|
Language | Haskell98 |
- data CondVars = CondVars {
- flags :: FlagMap
- os :: OS
- arch :: Arch
- compilerFlavor :: CompilerFlavor
- compilerVersion :: Maybe Version
- fromDefaults :: GenericPackageDescription -> CondVars
- enableFlag :: FlagName -> CondVars -> CondVars
- disableFlag :: FlagName -> CondVars -> CondVars
- eval :: CondVars -> Condition ConfVar -> Bool
Documentation
The variables that are used to resolve the conditionals inside of the cabal file. Holds the enable state of the cabal flags, the used OS, ARCH, CompilerFlavor and compiler version.
CondVars | |
|
fromDefaults :: GenericPackageDescription -> CondVars Source #
Create a CondVars
from the default flags of the cabal package description.
The os
, arch
and compilerFlavor
fields are initialized by the ones the cabal library was build on.