Safe Haskell | None |
---|---|
Language | Haskell98 |
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 # | |
Pretty (PP OrRelation) Source # | |
Defined in Debian.Relation.Common pretty :: PP OrRelation -> Doc # | |
Pretty (PP Relations) Source # | Wrap |
data ArchitectureReq Source #
Instances
Eq ArchitectureReq Source # | |
Defined in Debian.Relation.Common (==) :: ArchitectureReq -> ArchitectureReq -> Bool # (/=) :: ArchitectureReq -> ArchitectureReq -> Bool # | |
Ord ArchitectureReq Source # | |
Defined in Debian.Relation.Common compare :: ArchitectureReq -> ArchitectureReq -> Ordering # (<) :: ArchitectureReq -> ArchitectureReq -> Bool # (<=) :: ArchitectureReq -> ArchitectureReq -> Bool # (>) :: ArchitectureReq -> ArchitectureReq -> Bool # (>=) :: ArchitectureReq -> ArchitectureReq -> Bool # max :: ArchitectureReq -> ArchitectureReq -> ArchitectureReq # min :: ArchitectureReq -> ArchitectureReq -> ArchitectureReq # | |
Read ArchitectureReq Source # | |
Defined in Debian.Relation.Common | |
Show ArchitectureReq Source # | |
Defined in Debian.Relation.Common showsPrec :: Int -> ArchitectureReq -> ShowS # show :: ArchitectureReq -> String # showList :: [ArchitectureReq] -> ShowS # | |
Pretty (PP ArchitectureReq) Source # | |
Defined in Debian.Relation.Common pretty :: PP ArchitectureReq -> Doc # |
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 |