Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module for working with debian relationships http://www.debian.org/doc/debian-policy/ch-relationships.html
Synopsis
- type AndRelation = [OrRelation]
- type OrRelation = [Relation]
- type Relations = AndRelation
- data Relation = Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq)
- data ArchitectureReq
- data VersionReq
- 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 AndRelation = [OrRelation] Source #
type OrRelation = [Relation] Source #
type Relations = AndRelation Source #
Instances
Eq Relation Source # | |
Ord Relation Source # | |
Defined in Debian.Relation.Common | |
Read Relation Source # | |
Show Relation Source # | |
Pretty (PP Relation) Source # | |
Defined in Debian.Relation.Common | |
Pretty (PP OrRelation) Source # | |
Defined in Debian.Relation.Common pretty :: PP OrRelation -> Doc # prettyVersioned :: CabalSpecVersion -> PP OrRelation -> Doc # | |
Pretty (PP Relations) Source # | Wrap |
Defined in Debian.Relation.Common |
data ArchitectureReq Source #
Instances
data VersionReq Source #
Instances
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 #
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 ByteString Source # | |
Defined in Debian.Relation.ByteString | |
ParseRelations String Source # | |
Defined in Debian.Relation.String | |
ParseRelations Text Source # | |
Defined in Debian.Relation.Text |