Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- 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 #
Instances
Read Relation Source # | |
Show Relation Source # | |
Eq Relation Source # | |
Ord 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 Relation) Source # | |
Defined in Debian.Relation.Common | |
Pretty (PP Relations) Source # | Wrap |
Defined in Debian.Relation.Common |
newtype SrcPkgName Source #
Instances
newtype BinPkgName Source #
Instances
class Pretty (PP a) => PkgName a where Source #
pkgNameFromString :: String -> a Source #
Instances
PkgName BinPkgName Source # | |
Defined in Debian.Relation.Common pkgNameFromString :: String -> BinPkgName Source # | |
PkgName SrcPkgName Source # | |
Defined in Debian.Relation.Common pkgNameFromString :: String -> SrcPkgName 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 Text Source # | |
Defined in Debian.Relation.Text | |
ParseRelations String Source # | |
Defined in Debian.Relation.String |
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 #
Instances
data VersionReq Source #
Instances
prettyVersionReq :: VersionReq -> Doc Source #
checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool Source #
Check if a version number satisfies a version requirement.