Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module for working with debian relationships http://www.debian.org/doc/debian-policy/ch-relationships.html
Synopsis
- class Pretty (PP a) => PkgName a where
- pkgNameFromString :: String -> a
- newtype SrcPkgName = SrcPkgName {}
- newtype BinPkgName = BinPkgName {}
- type Relations = AndRelation
- type AndRelation = [OrRelation]
- type OrRelation = [Relation]
- data Relation = Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq)
- data ArchitectureReq
- data Arch
- data ArchOS
- data ArchCPU
- data VersionReq
- checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
- type RelParser a = CharParser () a
- class ParseRelations a where
- parseRelations :: a -> Either ParseError Relations
Types
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 # |
newtype SrcPkgName Source #
Instances
newtype BinPkgName Source #
Instances
type Relations = AndRelation Source #
type AndRelation = [OrRelation] Source #
type OrRelation = [Relation] Source #
Instances
Eq Relation Source # | |
Ord Relation Source # | |
Defined in Debian.Relation.Common | |
Read Relation Source # | |
Show Relation Source # | |
Pretty (PP 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 Relations) Source # | Wrap |
Defined in Debian.Relation.Common |
data ArchitectureReq Source #
Instances
Instances
Eq Arch Source # | |
Data Arch Source # | |
Defined in Debian.Arch gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Arch -> c Arch # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Arch # dataTypeOf :: Arch -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Arch) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Arch) # gmapT :: (forall b. Data b => b -> b) -> Arch -> Arch # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Arch -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Arch -> r # gmapQ :: (forall d. Data d => d -> u) -> Arch -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Arch -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Arch -> m Arch # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Arch -> m Arch # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Arch -> m Arch # | |
Ord Arch Source # | |
Read Arch Source # | |
Show Arch Source # | |
Instances
Eq ArchOS Source # | |
Data ArchOS Source # | |
Defined in Debian.Arch gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ArchOS -> c ArchOS # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ArchOS # toConstr :: ArchOS -> Constr # dataTypeOf :: ArchOS -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ArchOS) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ArchOS) # gmapT :: (forall b. Data b => b -> b) -> ArchOS -> ArchOS # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ArchOS -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ArchOS -> r # gmapQ :: (forall d. Data d => d -> u) -> ArchOS -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ArchOS -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ArchOS -> m ArchOS # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ArchOS -> m ArchOS # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ArchOS -> m ArchOS # | |
Ord ArchOS Source # | |
Read ArchOS Source # | |
Show ArchOS Source # | |
Instances
Eq ArchCPU Source # | |
Data ArchCPU Source # | |
Defined in Debian.Arch gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ArchCPU -> c ArchCPU # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ArchCPU # toConstr :: ArchCPU -> Constr # dataTypeOf :: ArchCPU -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ArchCPU) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ArchCPU) # gmapT :: (forall b. Data b => b -> b) -> ArchCPU -> ArchCPU # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ArchCPU -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ArchCPU -> r # gmapQ :: (forall d. Data d => d -> u) -> ArchCPU -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ArchCPU -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ArchCPU -> m ArchCPU # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ArchCPU -> m ArchCPU # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ArchCPU -> m ArchCPU # | |
Ord ArchCPU Source # | |
Read ArchCPU Source # | |
Show ArchCPU Source # | |
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 |