Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ConfiguredComponent = ConfiguredComponent {}
- cc_name :: ConfiguredComponent -> ComponentName
- toConfiguredComponent :: PackageDescription -> ComponentId -> Map PackageName (ComponentId, PackageId) -> ConfiguredComponentMap -> Component -> ConfiguredComponent
- toConfiguredComponents :: Bool -> FlagAssignment -> Bool -> Flag String -> Flag ComponentId -> PackageDescription -> Map PackageName (ComponentId, PackageId) -> [Component] -> [ConfiguredComponent]
- dispConfiguredComponent :: ConfiguredComponent -> Doc
- type ConfiguredComponentMap = (Map PackageName (ComponentId, PackageId), Map UnqualComponentName ComponentId)
- extendConfiguredComponentMap :: ConfiguredComponent -> ConfiguredComponentMap -> ConfiguredComponentMap
- newPackageDepsBehaviour :: PackageDescription -> Bool
Documentation
data ConfiguredComponent Source #
A configured component, we know exactly what its ComponentId
is,
and the ComponentId
s of the things it depends on.
ConfiguredComponent | |
|
cc_name :: ConfiguredComponent -> ComponentName Source #
The ComponentName
of a component; this uniquely identifies
a fragment of syntax within a specified Cabal file describing the
component.
toConfiguredComponent :: PackageDescription -> ComponentId -> Map PackageName (ComponentId, PackageId) -> ConfiguredComponentMap -> Component -> ConfiguredComponent Source #
Given some ambient environment of package names that
are "in scope", looks at the BuildInfo
to decide
what the packages actually resolve to, and then builds
a ConfiguredComponent
.
toConfiguredComponents :: Bool -> FlagAssignment -> Bool -> Flag String -> Flag ComponentId -> PackageDescription -> Map PackageName (ComponentId, PackageId) -> [Component] -> [ConfiguredComponent] Source #
dispConfiguredComponent :: ConfiguredComponent -> Doc Source #
Pretty-print a ConfiguredComponent
.
type ConfiguredComponentMap = (Map PackageName (ComponentId, PackageId), Map UnqualComponentName ComponentId) Source #