Cabal-3.2.1.0: A framework for packaging Haskell software
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-3.0

Instances

Instances details
Eq PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Data PkgconfigVersion # 
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 #

Ord PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Read PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Show PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Generic PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Associated Types

type Rep PkgconfigVersion :: Type -> Type Source #

Binary PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

NFData PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Methods

rnf :: PkgconfigVersion -> () Source #

Structured PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Pretty PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

Parsec PkgconfigVersion #
>>> 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

type Rep PkgconfigVersion # 
Instance details

Defined in Distribution.Types.PkgconfigVersion

type Rep PkgconfigVersion = D1 ('MetaData "PkgconfigVersion" "Distribution.Types.PkgconfigVersion" "Cabal-3.2.1.0" '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-3.0