Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A type for carrying the version and release of an rpm package.
Synopsis
- data VerRel = VerRel String String
- showVerRel :: VerRel -> String
- readVerRel :: String -> VerRel
- eitherVerRel :: String -> Either String VerRel
- maybeVerRel :: String -> Maybe VerRel
Documentation
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).
VerRel String String |
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