Distribution.Types.PackageVersionConstraint

Cabal-2.5.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.PackageVersionConstraint

Synopsis

- data PackageVersionConstraint = PackageVersionConstraint PackageName VersionRange

# Documentation

data PackageVersionConstraint Source #

A version constraint on a package. Different from `ExeDependency` and `Dependency` since it does not specify the need for a component, not even the main library. There are a few places in the codebase where `Dependency` is used where `PackageVersionConstraint` should be used instead (#5570).

Constructors

PackageVersionConstraint PackageName VersionRange |

#### Instances

Instances details

Eq PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods (==) :: PackageVersionConstraint -> PackageVersionConstraint -> Bool # (/=) :: PackageVersionConstraint -> PackageVersionConstraint -> Bool #
Data PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PackageVersionConstraint -> c PackageVersionConstraint Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PackageVersionConstraint Source # toConstr :: PackageVersionConstraint -> Constr Source # dataTypeOf :: PackageVersionConstraint -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PackageVersionConstraint) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PackageVersionConstraint) Source # gmapT :: (forall b. Data b => b -> b) -> PackageVersionConstraint -> PackageVersionConstraint Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PackageVersionConstraint -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PackageVersionConstraint -> r Source # gmapQ :: (forall d. Data d => d -> u) -> PackageVersionConstraint -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> PackageVersionConstraint -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> PackageVersionConstraint -> m PackageVersionConstraint Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PackageVersionConstraint -> m PackageVersionConstraint Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PackageVersionConstraint -> m PackageVersionConstraint Source #
Read PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods readsPrec :: Int -> ReadS PackageVersionConstraint Source # readList :: ReadS [PackageVersionConstraint] Source # readPrec :: ReadPrec PackageVersionConstraint Source # readListPrec :: ReadPrec [PackageVersionConstraint] Source #
Show PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods showsPrec :: Int -> PackageVersionConstraint -> ShowS Source # show :: PackageVersionConstraint -> String Source # showList :: [PackageVersionConstraint] -> ShowS Source #
Generic PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Associated Types type Rep PackageVersionConstraint :: Type -> Type Source # Methods from :: PackageVersionConstraint -> Rep PackageVersionConstraint x Source # to :: Rep PackageVersionConstraint x -> PackageVersionConstraint Source #
Binary PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods put :: PackageVersionConstraint -> Put Source # get :: Get PackageVersionConstraint Source # putList :: [PackageVersionConstraint] -> Put Source #
NFData PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods rnf :: PackageVersionConstraint -> () Source #
Pretty PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods pretty :: PackageVersionConstraint -> Doc Source #
Parsec PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint Methods parsec :: CabalParsing m => m PackageVersionConstraint Source #
type Rep PackageVersionConstraint # |
Instance details Defined in Distribution.Types.PackageVersionConstraint type Rep PackageVersionConstraint = D1 ('MetaData "PackageVersionConstraint" "Distribution.Types.PackageVersionConstraint" "Cabal-2.5.0.0" 'False) (C1 ('MetaCons "PackageVersionConstraint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionRange)))