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

Data.RPM.NV

Description

An NV type contains the name and version of a package only.

Synopsis

Documentation

data NV Source #

Package name-version type

Constructors

NV 

Fields

Instances

Instances details
Eq NV Source # 
Instance details

Defined in Data.RPM.NV

Methods

(==) :: NV -> NV -> Bool

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

showNV :: NV -> String Source #

Render an name-version

readNV :: String -> NV Source #

Read an NV

Errors if not of the form "name-version"

eitherNV :: String -> Either String NV Source #

Read a package name-version or return a failure string

maybeNV :: String -> Maybe NV Source #

Maybe read an package name-version