Cabal-2.0.0.2: A framework for packaging Haskell software

Distribution.Backpack.ComponentsGraph

Synopsis

# Documentation

A graph of source-level components by their source-level dependencies

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

A list of components associated with the source level dependencies between them.

Create a Graph of Component, or report a cycle if there is a problem.

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

Pretty-print ComponentsWithDeps.

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