Safe Haskell | None |
---|---|
Language | Haskell98 |
A module for parsing, comparing, and (eventually) modifying debian version numbers. http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
- data DebianVersion
- prettyDebianVersion :: DebianVersion -> Doc
- parseDebianVersion :: ParseDebianVersion a => a -> Either ParseError DebianVersion
- parseDebianVersion' :: ParseDebianVersion string => string -> DebianVersion
- epoch :: DebianVersion -> Maybe Int
- version :: DebianVersion -> String
- revision :: DebianVersion -> Maybe String
- buildDebianVersion :: Maybe Int -> String -> Maybe String -> DebianVersion
- evr :: DebianVersion -> (Maybe Int, String, Maybe String)
Documentation
data DebianVersion Source #
Exported abstract because the internal representation is likely to change
parseDebianVersion :: ParseDebianVersion a => a -> Either ParseError DebianVersion Source #
parseDebianVersion' :: ParseDebianVersion string => string -> DebianVersion Source #
Convert a string to a debian version number. May throw an exception if the string is unparsable -- but I am not sure if that can currently happen. Are there any invalid version strings? Perhaps ones with underscore, or something?
version :: DebianVersion -> String Source #
buildDebianVersion :: Maybe Int -> String -> Maybe String -> DebianVersion Source #