HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-solver-3.12.1.0Haskell2010

Distribution.Solver.Modular.Index

  • 5 types
  • 2 values
typetype Index = Map PN (Map I PInfo)
#

An index contains information about package instances. This is a nested dictionary. Package names are mapped to instances, which in turn is mapped to info.

datadata PInfo
#

Info associated with a package instance. Currently, dependencies, component names, flags and failure reasons. The component map records whether any components are unbuildable in the current environment (compiler, os, arch, and global flag constraints). Packages that have a failure reason recorded for them are disabled globally, for reasons external to the solver. We currently use this for shadowing which essentially is a GHC limitation, and for installed packages that are broken.

newtypenewtype IsVisible
#

Whether a component is visible in the current environment.

Constructors

Instances2Eq, Show
  • Eq IsVisibleDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Index
  • Show IsVisibleDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Index
newtypenewtype IsBuildable
#

Whether a component is made unbuildable by a "buildable: False" field.

Constructors

Instances2Eq, Show
  • Eq IsBuildableDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Index
  • Show IsBuildableDefined in cabal-install-solver-3.12.1.0 · Distribution.Solver.Modular.Index