HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulecabal-install-solver-3.18.1.0Haskell2010

Distribution.Solver.Modular.Package

Synopsis
datadata I

Instance. A version number and a location.

Constructors

Instances3Eq, Ord, Show
  • Eq IDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Ord IDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Show IDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
datadata Loc

Location. Info about whether a package is installed or not, and where exactly it is located. For installed packages, uniquely identifies the package instance via its PId.

TODO: More information is needed about the repo.

Constructors

Instances3Eq, Ord, Show
  • Eq LocDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Ord LocDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Show LocDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package

The name and version of a package.

Constructors

Instances13Eq, Data, Ord, Read, Show, Generic, …
newtypenewtype PackageName

A package name.

Use mkPackageName and unPackageName to convert from/to a String.

This type is opaque since Cabal-2.0

Instances13Eq, Data, Ord, Read, Show, IsString, …
newtypenewtype PkgconfigName

A pkg-config library name

This is parsed as any valid argument to the pkg-config utility.

Instances13Eq, Data, Ord, Read, Show, IsString, …
datadata PI qpn

Package instance. A package name and an instance.

Constructors

Instances4Functor, Eq, Ord, Show
  • Functor PIDefined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Eq qpn => Eq (PI qpn)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Ord qpn => Ord (PI qpn)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
  • Show qpn => Show (PI qpn)Defined in cabal-install-solver-3.18.1.0 · Distribution.Solver.Modular.Package
valuemakeIndependent :: PN -> QPN

Qualify a target package with its own name so that its dependencies are not required to be consistent with other targets.

Is the package in the primary group of packages. This is used to determine (1) if we should try to establish stanza preferences for this goal, and (2) whether or not a user specified --constraint should apply to this dependency (grep primaryPP to see the use sites). In particular this does not include packages pulled in as setup deps.

Is the package a dependency of a setup script. This is used to establish whether or not certain constraints should apply to this dependency (grep setupPP to see the use sites).