| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distribution.Solver.Types.ConstraintSource
Synopsis
- data ConstraintSource
- = ConstraintSourceMainConfig FilePath
- | ConstraintSourceProjectConfig ProjectConfigPath
- | ConstraintSourceUserConfig FilePath
- | ConstraintSourceCommandlineFlag
- | ConstraintSourceUserTarget
- | ConstraintSourceNonReinstallablePackage
- | ConstraintSourceFreeze
- | ConstraintSourceConfigFlagOrTarget
- | ConstraintSourceMultiRepl
- | 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 ProjectConfigPath | 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., |
| ConstraintSourceNonReinstallablePackage | 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. |
| ConstraintSourceMultiRepl | Constraint introduced by --enable-multi-repl, which requires features from Cabal >= 3.11 |
| 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.