Cabal-syntax-3.10.3.0: A library for working with .cabal files
Safe HaskellNone
LanguageHaskell2010

Distribution.Types.PkgconfigVersion

Synopsis

Documentation

newtype PkgconfigVersion Source #

pkg-config versions.

In fact, this can be arbitrary ByteString, but Parsec instance is a little pickier.

Since: Cabal-syntax-3.0

Instances

Instances details
Parsec PkgconfigVersion Source #
>>> simpleParsec "1.0.2n" :: Maybe PkgconfigVersion
Just (PkgconfigVersion "1.0.2n")
>>> simpleParsec "0.3.5+ds" :: Maybe PkgconfigVersion
Nothing
Instance details

Defined in Distribution.Types.PkgconfigVersion

Pretty PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Structured PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Data PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PkgconfigVersion -> c PkgconfigVersion Source #

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

toConstr :: PkgconfigVersion -> Constr Source #

dataTypeOf :: PkgconfigVersion -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Generic PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Associated Types

type Rep PkgconfigVersion 
Instance details

Defined in Distribution.Types.PkgconfigVersion

type Rep PkgconfigVersion = D1 ('MetaData "PkgconfigVersion" "Distribution.Types.PkgconfigVersion" "Cabal-syntax-3.10.3.0-9728" 'True) (C1 ('MetaCons "PkgconfigVersion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
Read PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Show PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Binary PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

NFData PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Methods

rnf :: PkgconfigVersion -> () Source #

Eq PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Ord PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

type Rep PkgconfigVersion Source # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

type Rep PkgconfigVersion = D1 ('MetaData "PkgconfigVersion" "Distribution.Types.PkgconfigVersion" "Cabal-syntax-3.10.3.0-9728" 'True) (C1 ('MetaCons "PkgconfigVersion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

rpmvercmp :: ByteString -> ByteString -> Ordering Source #

Compare two version strings as pkg-config would compare them.

Since: Cabal-syntax-3.0