debian-3.47: Modules for working with the Debian package system
Source code
Contents
Index
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
Source
type
AndRelation
= [
OrRelation
]
Source
type
OrRelation
= [
Relation
]
Source
type
Relations
=
AndRelation
Source
data
Relation
Source
Constructors
Rel
PkgName
(
Maybe
VersionReq
) (
Maybe
ArchitectureReq
)
data
ArchitectureReq
Source
Constructors
ArchOnly
[
String
]
ArchExcept
[
String
]
data
VersionReq
Source
Constructors
SLT
DebianVersion
LTE
DebianVersion
EEQ
DebianVersion
GRE
DebianVersion
SGR
DebianVersion
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
Methods
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
Produced by
Haddock
version 2.6.0