Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ConstraintSource
- = ConstraintSourceMainConfig FilePath
- | ConstraintSourceProjectConfig ProjectConfigPath
- | ConstraintSourceUserConfig FilePath
- | ConstraintSourceCommandlineFlag
- | ConstraintSourceUserTarget
- | ConstraintSourceNonReinstallablePackage
- | ConstraintSourceFreeze
- | ConstraintSourceConfigFlagOrTarget
- | ConstraintSourceMultiRepl
- | ConstraintSourceProfiledDynamic
- | ConstraintSourceUnknown
- | ConstraintSetupCabalMinVersion
- | ConstraintSetupCabalMaxVersion
- showConstraintSource :: ConstraintSource -> String
Documentation
data ConstraintSource Source #
Source of a PackageConstraint
.
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 |
ConstraintSourceProfiledDynamic | Constraint introduced by --enable-profiling-shared, which requires features from Cabal >= 3.13 |
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 Source #
Description of a ConstraintSource
.