Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Dependency = Dependency PackageName VersionRange (NonEmptySet LibraryName)
- mkDependency :: PackageName -> VersionRange -> NonEmptySet LibraryName -> Dependency
- depPkgName :: Dependency -> PackageName
- depVerRange :: Dependency -> VersionRange
- depLibraries :: Dependency -> NonEmptySet LibraryName
- simplifyDependency :: Dependency -> Dependency
- mainLibSet :: NonEmptySet LibraryName
Documentation
data Dependency Source #
Describes a dependency on a source package (API)
Invariant: package name does not appear as LSubLibName
in
set of library names.
Note: Dependency
is not an instance of Ord
, and so it cannot be used
in Set
or as the key to a Map
. For these and similar use cases see
DependencyMap
.
Dependency PackageName VersionRange (NonEmptySet 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
Parsec Dependency Source # |
Spaces around colon are not allowed:
Sublibrary syntax is accepted since
| ||||
Defined in Distribution.Types.Dependency parsec :: CabalParsing m => m Dependency Source # | |||||
Pretty Dependency Source # |
| ||||
Defined in Distribution.Types.Dependency pretty :: Dependency -> Doc Source # prettyVersioned :: CabalSpecVersion -> Dependency -> Doc Source # | |||||
Structured Dependency Source # | |||||
Defined in Distribution.Types.Dependency structure :: Proxy Dependency -> Structure Source # structureHash' :: Tagged Dependency MD5 | |||||
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 # | |||||
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 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Dependency # toConstr :: Dependency -> Constr # dataTypeOf :: Dependency -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Dependency) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Dependency) # gmapT :: (forall b. Data b => b -> b) -> Dependency -> Dependency # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Dependency -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Dependency -> r # gmapQ :: (forall d. Data d => d -> u) -> Dependency -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Dependency -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Dependency -> m Dependency # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Dependency -> m Dependency # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Dependency -> m Dependency # | |||||
Generic Dependency Source # | |||||
Defined in Distribution.Types.Dependency
from :: Dependency -> Rep Dependency x # to :: Rep Dependency x -> Dependency # | |||||
Read Dependency Source # | |||||
Defined in Distribution.Types.Dependency readsPrec :: Int -> ReadS Dependency # readList :: ReadS [Dependency] # readPrec :: ReadPrec Dependency # readListPrec :: ReadPrec [Dependency] # | |||||
Show Dependency Source # | |||||
Defined in Distribution.Types.Dependency showsPrec :: Int -> Dependency -> ShowS # show :: Dependency -> String # showList :: [Dependency] -> ShowS # | |||||
Eq Dependency Source # | |||||
Defined in Distribution.Types.Dependency (==) :: Dependency -> Dependency -> Bool # (/=) :: Dependency -> Dependency -> Bool # | |||||
Ord Dependency Source # | |||||
Defined in Distribution.Types.Dependency compare :: Dependency -> Dependency -> Ordering # (<) :: Dependency -> Dependency -> Bool # (<=) :: Dependency -> Dependency -> Bool # (>) :: Dependency -> Dependency -> Bool # (>=) :: Dependency -> Dependency -> Bool # max :: Dependency -> Dependency -> Dependency # min :: Dependency -> Dependency -> Dependency # | |||||
type Rep Dependency Source # | |||||
Defined in Distribution.Types.Dependency type Rep Dependency = D1 ('MetaData "Dependency" "Distribution.Types.Dependency" "Cabal-syntax-3.11.0.0-97f9" '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 (NonEmptySet LibraryName))))) |
mkDependency :: PackageName -> VersionRange -> NonEmptySet LibraryName -> Dependency Source #
Smart constructor of Dependency
.
If PackageName
is appears as LSubLibName
in a set of sublibraries,
it is automatically converted to LMainLibName
.
Since: Cabal-syntax-3.4.0.0
depPkgName :: Dependency -> PackageName Source #
depVerRange :: Dependency -> VersionRange Source #
simplifyDependency :: Dependency -> Dependency Source #
Simplify the VersionRange
expression in a Dependency
.
See simplifyVersionRange
.
mainLibSet :: NonEmptySet LibraryName Source #
Library set with main library.
Since: Cabal-syntax-3.4.0.0