Safe Haskell | None |
---|---|
Language | Haskell98 |
A module for working with debian relationships http://www.debian.org/doc/debian-policy/ch-relationships.html
- type AndRelation = [OrRelation]
- type OrRelation = [Relation]
- type Relations = AndRelation
- data Relation = Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq)
- data ArchitectureReq
- data VersionReq
- checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
- type RelParser a = CharParser () a
- class ParseRelations a where
Types
type AndRelation = [OrRelation] Source #
type OrRelation = [Relation] Source #
type Relations = AndRelation Source #
data ArchitectureReq Source #
data VersionReq Source #
Eq VersionReq Source # | |
Ord VersionReq Source # | The sort order is based on version number first, then on the kind of relation, sorting in the order |
Read VersionReq Source # | |
Show VersionReq Source # | |
Pretty (PP VersionReq) Source # | |
Helper Functions
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool Source #
Check if a version number satisfies a version requirement.
Relation Parser
type RelParser a = CharParser () a Source #
class ParseRelations a where Source #
parseRelations :: a -> Either ParseError Relations Source #
parseRelations
parse a debian relation (i.e. the value of a
Depends field). Return a parsec error or a value of type
Relations