Flag info. Default value, whether the flag is manual, and whether the flag is weak. Manual flags can only be set explicitly. Weak flags are typically deferred by the solver.
Modulecabal-install-solver-3.12.1.0Haskell2010
Distribution.Solver.Modular.Flag
- 10 types
- 7 values
- Packagecabal-install-solver-3.12.1.0
- Exports17
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceFlag.hs
Flag identifier. Just a string.
Flag defaults.
Instances4Functor, Eq, Ord, Show
Functor FNDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagEq qpn => Eq (FN qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagOrd qpn => Ord (FN qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagShow qpn => Show (FN qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Flag
Qualified flag name.
Qualified stanza name.
Stanza identifier.
Instances4Functor, Eq, Ord, Show
Functor SNDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagEq qpn => Eq (SN qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagOrd qpn => Ord (SN qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagShow qpn => Show (SN qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Flag
A property of flag and stanza choices that determines whether the choice should be deferred in the solving process.
A choice is called weak if we do want to defer it. This is the case for flags that should be implied by what's currently installed on the system, as opposed to flags that are used to explicitly enable or disable some functionality.
A choice is called trivial if it clearly does not matter. The special case of triviality we actually consider is if there are no new dependencies introduced by the choice.
Constructors
Instances3Eq, Ord, Show
Eq WeakOrTrivialDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagOrd WeakOrTrivialDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.FlagShow WeakOrTrivialDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Flag
Value shown for a flag in a solver log message. The message can refer to only the true choice, only the false choice, or both choices.
String representation of a flag-value pair.