Cabal-syntax-3.12.1.0: A library for working with .cabal files

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-syntax-3.0

Constructors

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

#### Instances

Instances details

Parsec PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods parsec :: CabalParsing m => m PkgconfigVersionRange Source #
Pretty PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods pretty :: PkgconfigVersionRange -> Doc Source # prettyVersioned :: CabalSpecVersion -> PkgconfigVersionRange -> Doc Source #
Structured PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods structure :: Proxy PkgconfigVersionRange -> Structure Source # structureHash' :: Tagged PkgconfigVersionRange MD5
Binary PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods put :: PkgconfigVersionRange -> Put Source # get :: Get PkgconfigVersionRange Source # putList :: [PkgconfigVersionRange] -> Put Source #
NFData PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods rnf :: PkgconfigVersionRange -> () Source #
Data PkgconfigVersionRange Source # |

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 #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PkgconfigVersionRange #

toConstr :: PkgconfigVersionRange -> Constr #

dataTypeOf :: PkgconfigVersionRange -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PkgconfigVersionRange) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PkgconfigVersionRange) #

gmapT :: (forall b. Data b => b -> b) -> PkgconfigVersionRange -> PkgconfigVersionRange #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PkgconfigVersionRange -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PkgconfigVersionRange -> r #

gmapQ :: (forall d. Data d => d -> u) -> PkgconfigVersionRange -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PkgconfigVersionRange -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PkgconfigVersionRange -> m PkgconfigVersionRange #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PkgconfigVersionRange -> m PkgconfigVersionRange #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PkgconfigVersionRange -> m PkgconfigVersionRange #

Generic PkgconfigVersionRange Source # |

Instance details

Defined in Distribution.Types.PkgconfigVersionRange

Associated Types

type Rep PkgconfigVersionRange |

Instance details

Defined in Distribution.Types.PkgconfigVersionRange

type Rep PkgconfigVersionRange = D1 ('MetaData "PkgconfigVersionRange" "Distribution.Types.PkgconfigVersionRange" "Cabal-syntax-3.12.1.0-5c0e" '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)))))

Methods

from :: PkgconfigVersionRange -> Rep PkgconfigVersionRange x #

to :: Rep PkgconfigVersionRange x -> PkgconfigVersionRange #

Read PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods readsPrec :: Int -> ReadS PkgconfigVersionRange # readList :: ReadS [PkgconfigVersionRange] # readPrec :: ReadPrec PkgconfigVersionRange # readListPrec :: ReadPrec [PkgconfigVersionRange] #
Show PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods showsPrec :: Int -> PkgconfigVersionRange -> ShowS # show :: PkgconfigVersionRange -> String # showList :: [PkgconfigVersionRange] -> ShowS #
Eq PkgconfigVersionRange Source # |
Instance details Defined in Distribution.Types.PkgconfigVersionRange Methods (==) :: PkgconfigVersionRange -> PkgconfigVersionRange -> Bool # (/=) :: PkgconfigVersionRange -> PkgconfigVersionRange -> Bool #
Ord PkgconfigVersionRange Source # |

Instance details

Defined in Distribution.Types.PkgconfigVersionRange

Methods

compare :: PkgconfigVersionRange -> PkgconfigVersionRange -> Ordering #

(<) :: PkgconfigVersionRange -> PkgconfigVersionRange -> Bool #

(<=) :: PkgconfigVersionRange -> PkgconfigVersionRange -> Bool #

(>) :: PkgconfigVersionRange -> PkgconfigVersionRange -> Bool #

(>=) :: PkgconfigVersionRange -> PkgconfigVersionRange -> Bool #

max :: PkgconfigVersionRange -> PkgconfigVersionRange -> PkgconfigVersionRange #

min :: PkgconfigVersionRange -> PkgconfigVersionRange -> PkgconfigVersionRange #

type Rep PkgconfigVersionRange Source # |

Instance details

Defined in Distribution.Types.PkgconfigVersionRange

type Rep PkgconfigVersionRange = D1 ('MetaData "PkgconfigVersionRange" "Distribution.Types.PkgconfigVersionRange" "Cabal-syntax-3.12.1.0-5c0e" '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 #