Cabal-2.0.0.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.Backpack.ComponentsGraph (signature[?])

Description

Synopsis

Documentation

type ComponentsGraph = [(Component, [ComponentName])] Source #

A components graph is a source level graph tracking the dependencies between components in a package.

toComponentsGraph :: ComponentRequestedSpec -> PackageDescription -> Either [ComponentName] ComponentsGraph Source #

Given the package description and a PackageDescription (used to determine if a package name is internal or not), create a graph of dependencies between the components. This is NOT necessarily the build order (although it is in the absence of Backpack.)

componentCycleMsg :: [ComponentName] -> Doc Source #

Error message when there is a cycle; takes the SCC of components.