debian-1.2: A set of modules for working with debian control files and packagesContentsIndex
Linspire.Debian.Version.Common
Description
A module for parsing, comparing, and (eventually) modifying debian version numbers. http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
Synopsis
data DebianVersion
class ParseDebianVersion a where
parseDebianVersion :: a -> DebianVersion
evr :: DebianVersion -> (Maybe Int, String, Maybe String)
buildDebianVersion :: Maybe Int -> String -> Maybe String -> DebianVersion
parseDV :: CharParser () (Found Int, NonNumeric, Found NonNumeric)
Documentation
data DebianVersion
show/hide Instances
Exported abstract because the internal representation is likely to change
class ParseDebianVersion a where
Methods
parseDebianVersion :: a -> DebianVersion
show/hide Instances
evr :: DebianVersion -> (Maybe Int, String, Maybe String)
Split a DebianVersion into its three components: epoch, version, revision. It is not safe to use the parsed version number for this because you will lose information, such as leading zeros.
buildDebianVersion :: Maybe Int -> String -> Maybe String -> DebianVersion
parseDV :: CharParser () (Found Int, NonNumeric, Found NonNumeric)
Produced by Haddock version 0.8