Visitar URL original
Stack.Types.Dependency
stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2024

Stack.Types.Dependency

Description

 
Synopsis

Documentation

data DepValue Source #

The value for a map from dependency name. This contains both the version range and the type of dependency.

Constructors

DepValue 

Instances

Instances details
Show DepValue Source # 
Instance details

Defined in Stack.Types.Dependency

data DepType Source #

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

Instances details
Show DepType Source # 
Instance details

Defined in Stack.Types.Dependency

Eq DepType Source # 
Instance details

Defined in Stack.Types.Dependency

Methods

(==) :: DepType -> DepType -> Bool #

(/=) :: DepType -> DepType -> Bool #

data DepLibrary Source #

Type repesenting dependency packages used as a library.

Constructors

DepLibrary 

Fields

Instances

Instances details
Show DepLibrary Source # 
Instance details

Defined in Stack.Types.Dependency

Eq DepLibrary Source # 
Instance details

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.