- 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
- checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
Documentation
type Relations = AndRelationSource
type AndRelation = [OrRelation]Source
type OrRelation = [Relation]Source
class ParseRelations a whereSource
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
data ArchitectureReq Source
data VersionReq Source
Eq VersionReq | |
Ord VersionReq | The sort order is based on version number first, then on the kind of relation, sorting in the order <, <= , ==, = , >> |
Show VersionReq |
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> BoolSource
Check if a version number satisfies a version requirement.