debian-3.21: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Version
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
parseDebianVersion :: ParseDebianVersion a => a -> DebianVersion
epoch
version
revision
buildDebianVersion :: Maybe Int -> String -> Maybe String -> DebianVersion
evr :: DebianVersion -> (Maybe Int, String, Maybe String)
Documentation
data DebianVersion Source
show/hide Instances
Exported abstract because the internal representation is likely to change
parseDebianVersion :: ParseDebianVersion a => a -> DebianVersionSource
epoch
version
revision
buildDebianVersion :: Maybe Int -> String -> Maybe String -> DebianVersionSource
evr :: DebianVersion -> (Maybe Int, String, Maybe String)Source
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.
Produced by Haddock version 2.4.2