debian-3.93.2: Modules for working with the Debian package system

Safe HaskellNone
LanguageHaskell98

Debian.Relation.Common

Synopsis

Documentation

newtype SrcPkgName Source #

Constructors

SrcPkgName 

Fields

Instances

Eq SrcPkgName Source # 
Data SrcPkgName Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SrcPkgName -> c SrcPkgName #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SrcPkgName #

toConstr :: SrcPkgName -> Constr #

dataTypeOf :: SrcPkgName -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SrcPkgName) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SrcPkgName) #

gmapT :: (forall b. Data b => b -> b) -> SrcPkgName -> SrcPkgName #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SrcPkgName -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SrcPkgName -> r #

gmapQ :: (forall d. Data d => d -> u) -> SrcPkgName -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SrcPkgName -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SrcPkgName -> m SrcPkgName #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcPkgName -> m SrcPkgName #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcPkgName -> m SrcPkgName #

Ord SrcPkgName Source # 
Read SrcPkgName Source # 
Show SrcPkgName Source # 
PkgName SrcPkgName Source # 
Pretty (PP SrcPkgName) Source # 

newtype BinPkgName Source #

Constructors

BinPkgName 

Fields

Instances

Eq BinPkgName Source # 
Data BinPkgName Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BinPkgName -> c BinPkgName #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BinPkgName #

toConstr :: BinPkgName -> Constr #

dataTypeOf :: BinPkgName -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BinPkgName) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BinPkgName) #

gmapT :: (forall b. Data b => b -> b) -> BinPkgName -> BinPkgName #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BinPkgName -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BinPkgName -> r #

gmapQ :: (forall d. Data d => d -> u) -> BinPkgName -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BinPkgName -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BinPkgName -> m BinPkgName #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BinPkgName -> m BinPkgName #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BinPkgName -> m BinPkgName #

Ord BinPkgName Source # 
Read BinPkgName Source # 
Show BinPkgName Source # 
PkgName BinPkgName Source # 
Pretty (PP BinPkgName) Source # 

class ParseRelations a where Source #

Minimal complete definition

parseRelations

Methods

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

checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool Source #

Check if a version number satisfies a version requirement.