Cabal-3.2.1.0: A framework for packaging Haskell software
Safe Haskell None
Language Haskell2010

Distribution.Types.Dependency

Synopsis

Documentation

data Dependency Source #

Describes a dependency on a source package (API)

Constructors

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

Instances details
Eq Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Data Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Methods

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 #
Instance details

Defined in Distribution.Types.Dependency

Show Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Generic Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Binary Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

NFData Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Structured Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Pretty Dependency Source #
Instance details

Defined in Distribution.Types.Dependency

Parsec Dependency Source #
>>> simpleParsec "mylib:sub" :: Maybe Dependency
Just (Dependency (PackageName "mylib") AnyVersion (fromList [LSubLibName (UnqualComponentName "sub")]))
>>> simpleParsec "mylib:{sub1,sub2}" :: Maybe Dependency
Just (Dependency (PackageName "mylib") AnyVersion (fromList [LSubLibName (UnqualComponentName "sub1"),LSubLibName (UnqualComponentName "sub2")]))
>>> simpleParsec "mylib:{ sub1 , sub2 }" :: Maybe Dependency
Just (Dependency (PackageName "mylib") AnyVersion (fromList [LSubLibName (UnqualComponentName "sub1"),LSubLibName (UnqualComponentName "sub2")]))
>>> simpleParsec "mylib:{ sub1 , sub2 } ^>= 42" :: Maybe Dependency
Just (Dependency (PackageName "mylib") (MajorBoundVersion (mkVersion [42])) (fromList [LSubLibName (UnqualComponentName "sub1"),LSubLibName (UnqualComponentName "sub2")]))

Spaces around colon are not allowed:

>>> simpleParsec "mylib: sub" :: Maybe Dependency
Nothing
>>> simpleParsec "mylib :sub" :: Maybe Dependency
Nothing
>>> simpleParsec "mylib: {sub1,sub2}" :: Maybe Dependency
Nothing
>>> simpleParsec "mylib :{sub1,sub2}" :: Maybe Dependency
Nothing
Instance details

Defined in Distribution.Types.Dependency

type Rep Dependency Source #
Instance details

Defined in Distribution.Types.Dependency