debian-3.21: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Relation.String
Contents
Types
Helper Functions
Relation Parser
Description
A module for working with debian relationships http://www.debian.org/doc/debian-policy/ch-relationships.html
Synopsis
type PkgName = String
type AndRelation = [OrRelation]
type OrRelation = [Relation]
type Relations = AndRelation
data Relation = Rel PkgName (Maybe VersionReq) (Maybe ArchitectureReq)
data ArchitectureReq
= ArchOnly [String]
| ArchExcept [String]
data VersionReq
= SLT DebianVersion
| LTE DebianVersion
| EEQ DebianVersion
| GRE DebianVersion
| SGR DebianVersion
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
type RelParser a = CharParser () a
class ParseRelations a where
parseRelations :: a -> Either ParseError Relations
pRelations :: RelParser Relations
Types
type PkgName = StringSource
type AndRelation = [OrRelation]Source
type OrRelation = [Relation]Source
type Relations = AndRelationSource
data Relation Source
Constructors
Rel PkgName (Maybe VersionReq) (Maybe ArchitectureReq)
show/hide Instances
data ArchitectureReq Source
Constructors
ArchOnly [String]
ArchExcept [String]
show/hide Instances
data VersionReq Source
Constructors
SLT DebianVersion
LTE DebianVersion
EEQ DebianVersion
GRE DebianVersion
SGR DebianVersion
show/hide Instances
Helper Functions
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> BoolSource
Check if a version number satisfies a version requirement.
Relation Parser
type RelParser a = CharParser () aSource
class ParseRelations a whereSource
Methods
parseRelations :: a -> Either ParseError RelationsSource
parseRelations parse a debian relation (i.e. the value of a Depends field). Return a parsec error or a value of type Relations
show/hide Instances
pRelations :: RelParser RelationsSource
Produced by Haddock version 2.4.2