Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Dependency = Dependency PackageName VersionRange ( Set LibraryName )
- depPkgName :: Dependency -> PackageName
- depVerRange :: Dependency -> VersionRange
- depLibraries :: Dependency -> Set LibraryName
- thisPackageVersion :: PackageIdentifier -> Dependency
- notThisPackageVersion :: PackageIdentifier -> Dependency
- simplifyDependency :: Dependency -> Dependency
Documentation
data Dependency Source #
Describes a dependency on a source package (API)
Dependency PackageName VersionRange ( Set LibraryName ) |
The set of libraries required from the package. Only the selected libraries will be built. It does not affect the cabal-install solver yet. |
Instances
Eq Dependency Source # | |
Defined in Distribution.Types.Dependency (==) :: Dependency -> Dependency -> Bool Source # (/=) :: Dependency -> Dependency -> Bool Source # |
|
Data Dependency Source # | |
Defined in Distribution.Types.Dependency gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> Dependency -> c Dependency Source # gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c Dependency Source # toConstr :: Dependency -> Constr Source # dataTypeOf :: Dependency -> DataType Source # dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c Dependency ) Source # dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c Dependency ) Source # gmapT :: ( forall b. Data b => b -> b) -> Dependency -> Dependency Source # gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Dependency -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Dependency -> r Source # gmapQ :: ( forall d. Data d => d -> u) -> Dependency -> [u] Source # gmapQi :: Int -> ( forall d. Data d => d -> u) -> Dependency -> u Source # gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Dependency -> m Dependency Source # gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Dependency -> m Dependency Source # gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Dependency -> m Dependency Source # |
|
Read Dependency Source # | |
Defined in Distribution.Types.Dependency readsPrec :: Int -> ReadS Dependency Source # readList :: ReadS [ Dependency ] Source # readPrec :: ReadPrec Dependency Source # readListPrec :: ReadPrec [ Dependency ] Source # |
|
Show Dependency Source # | |
Defined in Distribution.Types.Dependency |
|
Generic Dependency Source # | |
Defined in Distribution.Types.Dependency from :: Dependency -> Rep Dependency x Source # to :: Rep Dependency x -> Dependency Source # |
|
Binary Dependency Source # | |
Defined in Distribution.Types.Dependency put :: Dependency -> Put Source # get :: Get Dependency Source # putList :: [ Dependency ] -> Put Source # |
|
NFData Dependency Source # | |
Defined in Distribution.Types.Dependency rnf :: Dependency -> () Source # |
|
Structured Dependency Source # | |
Defined in Distribution.Types.Dependency structure :: Proxy Dependency -> Structure Source # structureHash' :: Tagged Dependency MD5 |
|
Pretty Dependency Source # | |
Defined in Distribution.Types.Dependency pretty :: Dependency -> Doc Source # prettyVersioned :: CabalSpecVersion -> Dependency -> Doc Source # |
|
Parsec Dependency Source # |
Spaces around colon are not allowed:
|
Defined in Distribution.Types.Dependency parsec :: CabalParsing m => m Dependency Source # |
|
type Rep Dependency Source # | |
Defined in Distribution.Types.Dependency
type
Rep
Dependency
=
D1
('
MetaData
"Dependency" "Distribution.Types.Dependency" "Cabal-3.2.1.0-3w1fQQbNnuQ5xlFGwVXcPy" '
False
) (
C1
('
MetaCons
"Dependency" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
PackageName
)
:*:
(
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
VersionRange
)
:*:
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(
Set
LibraryName
)))))
|
depPkgName :: Dependency -> PackageName Source #
depVerRange :: Dependency -> VersionRange Source #
depLibraries :: Dependency -> Set LibraryName Source #
simplifyDependency :: Dependency -> Dependency Source #
Simplify the
VersionRange
expression in a
Dependency
.
See
simplifyVersionRange
.