rpm-nvr-0.1.0: RPM package name-version-release library
Safe HaskellSafe
LanguageHaskell2010

Data.RPM.VerRel

Description

A type for carrying the version and release of an rpm package.

Synopsis

Documentation

data VerRel Source #

The version-release of an (rpm) package, which is ordered by rpmVerCompare for version and release.

FIXME: note currently rpmVerCompare is not used for Eq (like codec-rpm).

Constructors

VerRel String String 

Instances

Instances details
Eq VerRel Source # 
Instance details

Defined in Data.RPM.VerRel

Methods

(==) :: VerRel -> VerRel -> Bool

(/=) :: VerRel -> VerRel -> Bool

Ord VerRel Source # 
Instance details

Defined in Data.RPM.VerRel

Methods

compare :: VerRel -> VerRel -> Ordering

(<) :: VerRel -> VerRel -> Bool

(<=) :: VerRel -> VerRel -> Bool

(>) :: VerRel -> VerRel -> Bool

(>=) :: VerRel -> VerRel -> Bool

max :: VerRel -> VerRel -> VerRel

min :: VerRel -> VerRel -> VerRel

showVerRel :: VerRel -> String Source #

Display a VerRel

readVerRel :: String -> VerRel Source #

Read a version-release

Errors if malformed

eitherVerRel :: String -> Either String VerRel Source #

Either read a package version-release or return an failure string

maybeVerRel :: String -> Maybe VerRel Source #

Maybe read a package version-release