ContentsIndex
Parsers.Version
Description
this parser module contains functions that allow to parse and compare ebuild version numbers
Synopsis
split_version :: ByteString -> [VersionTok]
test_NumCharTok :: VersionTok -> Bool
test_Revision :: VersionTok -> Bool
remove_trailing_zeros :: [VersionTok] -> [VersionTok]
data VersionTok
= NumTok ByteString
| Suffix SuffixChoice
| Revision
data SuffixChoice
= Alpha
| Beta
| Pre
| Rc
| P
Documentation
split_version :: ByteString -> [VersionTok]
split a version number into tokens
test_NumCharTok :: VersionTok -> Bool
simple function to test if an VersionTok data element is of type NumTok or CharTok
test_Revision :: VersionTok -> Bool
simple function to test if an VersionTok data element is of type Revision
remove_trailing_zeros :: [VersionTok] -> [VersionTok]
remove trailing zeros from a list of NumToks
data VersionTok
keeps track of the token type in a version string
Constructors
NumTok ByteString
Suffix SuffixChoice
Revision
show/hide Instances
data SuffixChoice
keeps track of the type of version suffix
Constructors
Alpha
Beta
Pre
Rc
P
show/hide Instances
Produced by Haddock version 2.4.2