Safe Haskell | None |
---|---|
Language | Haskell98 |
- type Relations = AndRelation
- type AndRelation = [OrRelation]
- type OrRelation = [Relation]
- data Relation = Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq)
- newtype SrcPkgName = SrcPkgName {}
- newtype BinPkgName = BinPkgName {}
- class Pretty (PP a) => PkgName a where
- pkgNameFromString :: String -> a
- class ParseRelations a where
- parseRelations :: a -> Either ParseError Relations
- prettyRelations :: [[Relation]] -> Doc
- prettyOrRelation :: [Relation] -> Doc
- prettyRelation :: Relation -> Doc
- data ArchitectureReq
- prettyArchitectureReq :: ArchitectureReq -> Doc
- data VersionReq
- prettyVersionReq :: VersionReq -> Doc
- checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
Documentation
type Relations = AndRelation Source
type AndRelation = [OrRelation] Source
type OrRelation = [Relation] Source
newtype SrcPkgName Source
newtype BinPkgName 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
prettyRelations :: [[Relation]] -> Doc Source
This needs to be indented for use in a control file: intercalate "n " . lines . show
prettyOrRelation :: [Relation] -> Doc Source
prettyRelation :: Relation -> Doc Source
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 |
Read VersionReq | |
Show VersionReq | |
Pretty (PP VersionReq) |
prettyVersionReq :: VersionReq -> Doc Source
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool Source
Check if a version number satisfies a version requirement.