Safe Haskell | None |
---|---|
Language | GHC2021 |
Stack.Component
Description
All utility functions for Components in Stack (library, internal library, foreign library, executable, tests, benchmarks). In particular, this module gathers all the Cabal-to-Stack component translations, which previously occurred in the Stack.Package module. See Stack.Types.Component for more details about the design choices.
Documentation
isComponentBuildable :: HasBuildInfo component => component -> Bool Source #
foldOnNameAndBuildInfo :: (HasField "buildInfo" a StackBuildInfo, HasField "name" a StackUnqualCompName, Foldable c) => c a -> (StackUnqualCompName -> StackBuildInfo -> t -> t) -> t -> t Source #
componentDependencyMap :: (HasField "buildInfo" r1 r2, HasField "dependency" r2 a) => r1 -> a Source #