Debian.Relation.Common
- 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
Constructors
| Rel PkgName (Maybe VersionReq) (Maybe ArchitectureReq) |
class ParseRelations a whereSource
Methods
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
Instances
data VersionReq Source
Constructors
| SLT DebianVersion | |
| LTE DebianVersion | |
| EEQ DebianVersion | |
| GRE DebianVersion | |
| SGR DebianVersion |
Instances
| 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.