rpm-nvr-0.1.2: RPM package name-version-release data types
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.RPM.NVR

Description

A type for name-version-release of an RPM package

Synopsis

Documentation

data NVR Source #

An rpm package name-version-release

Constructors

NVR 

Instances

Instances details
Eq NVR Source # 
Instance details

Defined in Data.RPM.NVR

Methods

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

(/=) :: NVR -> NVR -> Bool #

showNVR :: NVR -> String Source #

render an name-version-release

readNVR :: String -> NVR Source #

read an NVR

Errors if not of the form "name-version-release"

eitherNVR :: String -> Either String NVR Source #

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

maybeNVR :: String -> Maybe NVR Source #

Maybe read a package name-version-release string

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 

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