| License | BSD-3-Clause |
|---|---|
| Safe Haskell | None |
| Language | GHC2024 |
Stack.Types.Dependency
Description
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.
Constructors
| DepValue | |
Fields
| |
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
Constructors
| AsLibrary !DepLibrary | Dependency is used as a library. |
| AsBuildTool | Dependency is used only to provide a build tool. |
Instances
data DepLibrary Source #
Type repesenting dependency packages used as a library.
Constructors
| DepLibrary | |
Fields
| |
Instances
| Show DepLibrary Source # | |
Defined in Stack.Types.Dependency Methods showsPrec :: Int -> DepLibrary -> ShowS # show :: DepLibrary -> String # showList :: [DepLibrary] -> ShowS # | |
| Eq DepLibrary Source # | |
Defined in Stack.Types.Dependency | |
cabalToStackDep :: Dependency -> DepValue Source #
Given a Dependency, yield the Stack equivalent.
cabalExeToStackDep :: ExeDependency -> DepValue Source #
Given an ExeDependency, yield the Stack equivalent.
isDepTypeLibrary :: DepType -> Bool Source #
Test whether the dependency is being used as a library.
getDepSublib :: DepValue -> Maybe (Set StackUnqualCompName) Source #
A function to yield the set (which may be empty) of dependencies on
sub-library components. Yields Nothing if the dependency is used only to
provide a build tool.
depValueToTarget :: DepValue -> Target Source #