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

Safe HaskellNone




data Relation Source


Eq Relation Source 
Ord Relation Source 
Read Relation Source 
Show Relation Source 
Pretty (PP Relation) Source 
Pretty (PP OrRelation) Source 
Pretty (PP Relations) Source

Wrap PP around type synonyms that might overlap with the `Pretty [a]` instance.

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

data VersionReq Source


Eq VersionReq Source 
Ord VersionReq Source

The sort order is based on version number first, then on the kind of relation, sorting in the order

Read VersionReq Source 
Show VersionReq Source 
Pretty (PP VersionReq) Source 

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

Check if a version number satisfies a version requirement.