Safe Haskell | None |
---|---|
Language | Haskell2010 |
Distribution.Types.Dependency
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 #
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
Eq Dependency # | |
Defined in Distribution.Types.Dependency | |
Data Dependency # | |
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 # 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 :: (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 # | |
Read Dependency # | |
Defined in Distribution.Types.Dependency Methods readsPrec :: Int -> ReadS Dependency # readList :: ReadS [Dependency] # readPrec :: ReadPrec Dependency # readListPrec :: ReadPrec [Dependency] # | |
Show Dependency # | |
Defined in Distribution.Types.Dependency Methods showsPrec :: Int -> Dependency -> ShowS # show :: Dependency -> String # showList :: [Dependency] -> ShowS # | |
Generic Dependency # | |
Defined in Distribution.Types.Dependency Associated Types type Rep Dependency :: * -> * # | |
Binary Dependency # | |
Defined in Distribution.Types.Dependency | |
NFData Dependency # | |
Defined in Distribution.Types.Dependency Methods rnf :: Dependency -> () # | |
Structured Dependency # | |
Defined in Distribution.Types.Dependency | |
Pretty Dependency # | |
Defined in Distribution.Types.Dependency | |
Parsec Dependency # |
Spaces around colon are not allowed:
|
Defined in Distribution.Types.Dependency Methods parsec :: CabalParsing m => m Dependency # | |
type Rep Dependency # | |
Defined in Distribution.Types.Dependency type Rep Dependency = D1 (MetaData "Dependency" "Distribution.Types.Dependency" "Cabal-3.3.0.0-inplace" 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 #
depVerRange :: Dependency -> VersionRange #
depLibraries :: Dependency -> Set LibraryName #
simplifyDependency :: Dependency -> Dependency #
Simplify the VersionRange
expression in a Dependency
.
See simplifyVersionRange
.