Distribution.Types.PkgconfigVersionRange

Cabal-3.1.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.PkgconfigVersionRange

Contents

- Internal

Synopsis

- data PkgconfigVersionRange
  - = PcAnyVersion
  - | PcThisVersion PkgconfigVersion
  - | PcLaterVersion PkgconfigVersion
  - | PcEarlierVersion PkgconfigVersion
  - | PcOrLaterVersion PkgconfigVersion
  - | PcOrEarlierVersion PkgconfigVersion
  - | PcUnionVersionRanges PkgconfigVersionRange PkgconfigVersionRange
  - | PcIntersectVersionRanges PkgconfigVersionRange PkgconfigVersionRange
- anyPkgconfigVersion :: PkgconfigVersionRange
- isAnyPkgconfigVersion :: PkgconfigVersionRange -> Bool
- withinPkgconfigVersionRange :: PkgconfigVersion -> PkgconfigVersionRange -> Bool
- versionToPkgconfigVersion :: Version -> PkgconfigVersion
- versionRangeToPkgconfigVersionRange :: VersionRange -> PkgconfigVersionRange

# Documentation

data PkgconfigVersionRange Source #

Since: Cabal-3.0

Constructors

PcAnyVersion |
PcThisVersion PkgconfigVersion |
PcLaterVersion PkgconfigVersion |
PcEarlierVersion PkgconfigVersion |
PcOrLaterVersion PkgconfigVersion |
PcOrEarlierVersion PkgconfigVersion |
PcUnionVersionRanges PkgconfigVersionRange PkgconfigVersionRange |
PcIntersectVersionRanges PkgconfigVersionRange PkgconfigVersionRange |

#### Instances

Instances details

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

anyPkgconfigVersion :: PkgconfigVersionRange Source #

isAnyPkgconfigVersion :: PkgconfigVersionRange -> Bool Source #

TODO: this is not precise, but used only to prettify output.

withinPkgconfigVersionRange :: PkgconfigVersion -> PkgconfigVersionRange -> Bool Source #

# Internal

versionToPkgconfigVersion :: Version -> PkgconfigVersion Source #

versionRangeToPkgconfigVersionRange :: VersionRange -> PkgconfigVersionRange Source #