HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Modulecabal-install-solver-3.16.0.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
Contents
  1. Fine-grained package dependencies
  2. Constructing ComponentDeps
  3. Deconstructing ComponentDeps
Synopsis

Fine-grained package dependencies

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

Deconstructing ComponentDeps

valueflatDeps :: Monoid a => ComponentDeps a -> a

All dependencies of a package.

This is just a synonym for fold, but perhaps a use of flatDeps is more obvious than a use of fold, and moreover this avoids introducing lots of #ifdefs for 7.10 just for the use of fold.

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.