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