debian-1.2: A set of modules for working with debian control files and packagesContentsIndex
Linspire.Debian.Relation.ByteString
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
Types
type PkgName = String
type AndRelation = [OrRelation]
type OrRelation = [Relation]
type Relations = AndRelation
data Relation
Constructors
Rel PkgName (Maybe VersionReq) (Maybe ArchitectureReq)
show/hide Instances
data ArchitectureReq
Constructors
ArchOnly [String]
ArchExcept [String]
show/hide Instances
data VersionReq
Constructors
SLT DebianVersion
LTE DebianVersion
EEQ DebianVersion
GRE DebianVersion
SGR DebianVersion
show/hide Instances
Helper Functions
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
Check if a version number satisfies a version requirement.
Relation Parser
type RelParser a = CharParser () a
class ParseRelations a where
Methods
parseRelations :: a -> Either ParseError Relations
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
Produced by Haddock version 0.8