Safe Haskell | None |
---|
- 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 -> CondVarsSource
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.
enableFlag :: FlagName -> CondVars -> CondVarsSource
Enable the given flag in CondVars
.
disableFlag :: FlagName -> CondVars -> CondVarsSource
Disable the given flag in CondVars
.