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

Data.RPM.NVRA

Description

A type for a (binary) RPM package.

Synopsis

Documentation

data NVRA Source #

RPM package with name, version-release, and architecture

If arch is not needed use NVR instead.

FIXME: add epoch field

Constructors

NVRA 

Instances

Instances details
Eq NVRA Source # 
Instance details

Defined in Data.RPM.NVRA

Methods

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

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

Ord NVRA Source # 
Instance details

Defined in Data.RPM.NVRA

Methods

compare :: NVRA -> NVRA -> Ordering #

(<) :: NVRA -> NVRA -> Bool #

(<=) :: NVRA -> NVRA -> Bool #

(>) :: NVRA -> NVRA -> Bool #

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

max :: NVRA -> NVRA -> NVRA #

min :: NVRA -> NVRA -> NVRA #

readNVRA :: String -> NVRA Source #

Parse an NVRA with arch suffix

Errors if not of the form "name-version-release[.arch]"

eitherNVRA :: String -> Either String NVRA Source #

Either read a name-version-release.arch or return a failure string

Strips off ".rpm" extension and any directory path prefix.

maybeNVRA :: String -> Maybe NVRA Source #

Maybe read an NVRA

showNVRA :: NVRA -> String Source #

Render an RpmPackage

showPkgIdent :: NVRA -> String Source #

Identifier for an RPM package identified by name and arch

showPkgVerRel :: NVRA -> String Source #

Render the version-release of an NVRA