HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulecabal-install-solver-3.18.1.0Haskell2010

Distribution.Solver.Types.ComponentDeps

Fine-grained package dependencies

Like many others, this module is meant to be "double-imported":

import Distribution.Solver.Types.ComponentDeps (
    Component
  , ComponentDep
  , ComponentDeps
  )
import qualified Distribution.Solver.Types.ComponentDeps as CD
  • 3 types
  • 17 values

Fine-grained package dependencies

4 declarations
datadata Component
#
Instances8Eq, Ord, Show, Generic, Binary, Pretty, …
newtypenewtype ComponentDeps a
#

Fine-grained dependencies for a package.

Typically used as ComponentDeps [Dependency], to represent the list of dependencies for each named component within a package.

Instances12Functor, Foldable, Traversable, Eq, Ord, Show, …

Constructing ComponentDeps

valuefromInstalled :: a -> ComponentDeps a
#

ComponentDeps for installed packages.

We assume that installed packages only record their library dependencies.

Deconstructing ComponentDeps

valuenonSetupDeps :: Monoid a => ComponentDeps a -> a
#

All dependencies except the setup dependencies.

Prior to the introduction of setup dependencies in version 1.24 this would have been _all_ dependencies.