Distribution.Types.Dependency

Cabal-2.1.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.Dependency

Synopsis

- data Dependency = Dependency PackageName VersionRange
- depPkgName :: Dependency -> PackageName
- depVerRange :: Dependency -> VersionRange
- thisPackageVersion :: PackageIdentifier -> Dependency
- notThisPackageVersion :: PackageIdentifier -> Dependency
- simplifyDependency :: Dependency -> Dependency

# Documentation

data Dependency Source #

Describes a dependency on a source package (API)

Constructors

Dependency PackageName VersionRange |

Instances

Eq Dependency # |
Instance details Methods (==) :: Dependency -> Dependency -> Bool # (/=) :: Dependency -> Dependency -> Bool #
Data Dependency # |
Instance details 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 :: (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 # |
Instance details Methods readsPrec :: Int -> ReadS Dependency Source # readList :: ReadS [Dependency] Source # readPrec :: ReadPrec Dependency Source # readListPrec :: ReadPrec [Dependency] Source #
Show Dependency # |
Instance details Methods showsPrec :: Int -> Dependency -> ShowS Source # show :: Dependency -> String Source # showList :: [Dependency] -> ShowS Source #
Generic Dependency # |
Instance details Associated Types type Rep Dependency :: * -> * Source # Methods from :: Dependency -> Rep Dependency x Source # to :: Rep Dependency x -> Dependency Source #
NFData Dependency # |
Instance details Methods rnf :: Dependency -> () Source #
Binary Dependency # |
Instance details Methods put :: Dependency -> Put Source # get :: Get Dependency Source # putList :: [Dependency] -> Put Source #
Parsec Dependency # |
Instance details Methods parsec :: ParsecParser Dependency Source # lexemeParsec :: ParsecParser Dependency Source #
Pretty Dependency # |
Instance details Methods pretty :: Dependency -> Doc Source #
Text Dependency # |
Instance details Methods disp :: Dependency -> Doc Source # parse :: ReadP r Dependency Source #
type Rep Dependency # |
Instance details type Rep Dependency = D1 (MetaData "Dependency" "Distribution.Types.Dependency" "Cabal-2.1.0.0" 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)))

depPkgName :: Dependency -> PackageName Source #

depVerRange :: Dependency -> VersionRange Source #

thisPackageVersion :: PackageIdentifier -> Dependency Source #

notThisPackageVersion :: PackageIdentifier -> Dependency Source #

simplifyDependency :: Dependency -> Dependency Source #

Simplify the `VersionRange` expression in a `Dependency`. See `simplifyVersionRange`.