debian-3.32: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Relation.Common
Synopsis
type PkgName = String
type Relations = AndRelation
type AndRelation = [OrRelation]
type OrRelation = [Relation]
data Relation = Rel PkgName (Maybe VersionReq) (Maybe ArchitectureReq)
class ParseRelations a where
parseRelations :: a -> Either ParseError Relations
data ArchitectureReq
= ArchOnly [String]
| ArchExcept [String]
data VersionReq
= SLT DebianVersion
| LTE DebianVersion
| EEQ DebianVersion
| GRE DebianVersion
| SGR DebianVersion
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
Documentation
type PkgName = StringSource
type Relations = AndRelationSource
type AndRelation = [OrRelation]Source
type OrRelation = [Relation]Source
data Relation Source
Constructors
Rel PkgName (Maybe VersionReq) (Maybe ArchitectureReq)
show/hide Instances
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
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
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> BoolSource
Check if a version number satisfies a version requirement.
Produced by Haddock version 2.4.2