Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data DepValue = DepValue {
- versionRange :: !VersionRange
- depType :: !DepType
- data DepType
- data DepLibrary = DepLibrary {
- main :: !Bool
- subLib :: Set StackUnqualCompName
- cabalToStackDep :: Dependency -> DepValue
- cabalExeToStackDep :: ExeDependency -> DepValue
- cabalSetupDepsToStackDep :: SetupBuildInfo -> Map PackageName DepValue
- libraryDepFromVersionRange :: VersionRange -> DepValue
- isDepTypeLibrary :: DepType -> Bool
- getDepSublib :: DepValue -> Maybe (Set StackUnqualCompName)
- depValueToTarget :: DepValue -> Target
Documentation
The value for a map from dependency name. This contains both the version range and the type of dependency.
DepValue | |
|
Is this package being used as a library, or just as a build tool? If the former, we need to ensure that a library actually exists. See https://github.com/commercialhaskell/stack/issues/2195
data DepLibrary Source #
DepLibrary | |
|
Instances
Show DepLibrary Source # | |
Defined in Stack.Types.Dependency showsPrec :: Int -> DepLibrary -> ShowS # show :: DepLibrary -> String # showList :: [DepLibrary] -> ShowS # | |
Eq DepLibrary Source # | |
Defined in Stack.Types.Dependency (==) :: DepLibrary -> DepLibrary -> Bool # (/=) :: DepLibrary -> DepLibrary -> Bool # |
cabalToStackDep :: Dependency -> DepValue Source #
cabalExeToStackDep :: ExeDependency -> DepValue Source #
cabalSetupDepsToStackDep :: SetupBuildInfo -> Map PackageName DepValue Source #
isDepTypeLibrary :: DepType -> Bool Source #
getDepSublib :: DepValue -> Maybe (Set StackUnqualCompName) Source #
depValueToTarget :: DepValue -> Target Source #