| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Distribution.Solver.Types.ConstraintSource
Synopsis
- data ConstraintSource
- = ConstraintSourceMainConfig FilePath
- | ConstraintSourceProjectConfig FilePath
- | ConstraintSourceUserConfig FilePath
- | ConstraintSourceCommandlineFlag
- | ConstraintSourceUserTarget
- | ConstraintSourceNonUpgradeablePackage
- | ConstraintSourceFreeze
- | ConstraintSourceConfigFlagOrTarget
- | ConstraintSourceUnknown
- | ConstraintSetupCabalMinVersion
- | ConstraintSetupCabalMaxVersion
- showConstraintSource :: ConstraintSource -> String
Documentation
data ConstraintSource #
Source of a PackageConstraint.
Constructors
| ConstraintSourceMainConfig FilePath | Main config file, which is ~.cabalconfig by default. |
| ConstraintSourceProjectConfig FilePath | Local cabal.project file |
| ConstraintSourceUserConfig FilePath | User config file, which is ./cabal.config by default. |
| ConstraintSourceCommandlineFlag | Flag specified on the command line. |
| ConstraintSourceUserTarget | Target specified by the user, e.g., |
| ConstraintSourceNonUpgradeablePackage | Internal requirement to use installed versions of packages like ghc-prim. |
| ConstraintSourceFreeze | Internal constraint used by |
| ConstraintSourceConfigFlagOrTarget | Constraint specified by a config file, a command line flag, or a user target, when a more specific source is not known. |
| ConstraintSourceUnknown | The source of the constraint is not specified. |
| ConstraintSetupCabalMinVersion | An internal constraint due to compatibility issues with the Setup.hs command line interface requires a minimum lower bound on Cabal |
| ConstraintSetupCabalMaxVersion | An internal constraint due to compatibility issues with the Setup.hs command line interface requires a maximum upper bound on Cabal |
Instances
showConstraintSource :: ConstraintSource -> String #
Description of a ConstraintSource.