HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecabal-install-solver-3.12.1.0Haskell2010

Distribution.Solver.Modular.Package

  • 9 types
  • 11 values
datadata I
#

Instance. A version number and a location.

Constructors

Instances3Eq, Ord, Show
  • Eq IDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Package
  • Ord IDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Package
  • Show IDefined in cabal-install-solver-3.12.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.12.1.0 · Distribution.Solver.Modular.Package
  • Ord LocDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Package
  • Show LocDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Package
datadata PackageIdentifier
#

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.12.1.0 · Distribution.Solver.Modular.Package
  • Eq qpn => Eq (PI qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Package
  • Ord qpn => Ord (PI qpn)Defined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Package
  • Show qpn => Show (PI qpn)Defined in cabal-install-solver-3.12.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.

valueprimaryPP :: PackagePath -> Bool
#

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.

valuesetupPP :: PackagePath -> Bool
#

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).

valueshowI :: I -> String
#

String representation of an instance.