Distribution.Types.PkgconfigVersion

Cabal-3.2.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.PkgconfigVersion

Synopsis

- newtype PkgconfigVersion = PkgconfigVersion ByteString
- rpmvercmp :: ByteString -> ByteString -> Ordering

# Documentation

newtype PkgconfigVersion #

`pkg-config` versions.

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

Since: Cabal-3.0

Constructors

PkgconfigVersion ByteString |

#### Instances

Instances details

Eq PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods (==) :: PkgconfigVersion -> PkgconfigVersion -> Bool # (/=) :: PkgconfigVersion -> PkgconfigVersion -> Bool #
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 Methods compare :: PkgconfigVersion -> PkgconfigVersion -> Ordering # (<) :: PkgconfigVersion -> PkgconfigVersion -> Bool # (<=) :: PkgconfigVersion -> PkgconfigVersion -> Bool # (>) :: PkgconfigVersion -> PkgconfigVersion -> Bool # (>=) :: PkgconfigVersion -> PkgconfigVersion -> Bool # max :: PkgconfigVersion -> PkgconfigVersion -> PkgconfigVersion # min :: PkgconfigVersion -> PkgconfigVersion -> PkgconfigVersion #
Read PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods readsPrec :: Int -> ReadS PkgconfigVersion Source # readList :: ReadS [PkgconfigVersion] Source # readPrec :: ReadPrec PkgconfigVersion Source # readListPrec :: ReadPrec [PkgconfigVersion] Source #
Show PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods showsPrec :: Int -> PkgconfigVersion -> ShowS Source # show :: PkgconfigVersion -> String Source # showList :: [PkgconfigVersion] -> ShowS Source #
Generic PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Associated Types type Rep PkgconfigVersion :: Type -> Type Source # Methods from :: PkgconfigVersion -> Rep PkgconfigVersion x Source # to :: Rep PkgconfigVersion x -> PkgconfigVersion Source #
Binary PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods put :: PkgconfigVersion -> Put Source # get :: Get PkgconfigVersion Source # putList :: [PkgconfigVersion] -> Put Source #
NFData PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods rnf :: PkgconfigVersion -> () Source #
Structured PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods structure :: Proxy PkgconfigVersion -> Structure # structureHash' :: Tagged PkgconfigVersion MD5
Pretty PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion Methods pretty :: PkgconfigVersion -> Doc # prettyVersioned :: CabalSpecVersion -> PkgconfigVersion -> Doc #
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 Methods parsec :: CabalParsing m => m PkgconfigVersion #
type Rep PkgconfigVersion # |
Instance details Defined in Distribution.Types.PkgconfigVersion type Rep PkgconfigVersion = D1 ('MetaData "PkgconfigVersion" "Distribution.Types.PkgconfigVersion" "Cabal-3.2.0.0" 'True) (C1 ('MetaCons "PkgconfigVersion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

rpmvercmp :: ByteString -> ByteString -> Ordering #

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

Since: Cabal-3.0