| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Debian.Relation.String
Description
A module for working with debian relationships http://www.debian.org/doc/debian-policy/ch-relationships.html
Synopsis
- type AndRelation = [OrRelation]
- type OrRelation = [Relation]
- type Relations = AndRelation
- data Relation = Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq)
- data ArchitectureReq
- data VersionReq
- checkVersionReq :: Maybe VersionReq -> Maybe DebianVersion -> Bool
- type RelParser a = CharParser () a
- class ParseRelations a where
- parseRelations :: a -> Either ParseError Relations
- pRelations :: RelParser Relations
Types
type AndRelation = [OrRelation] Source #
type OrRelation = [Relation] Source #
type Relations = AndRelation Source #
Constructors
| Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq) |
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 Methods 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 | |
data ArchitectureReq Source #
Instances
data VersionReq Source #
Constructors
| SLT DebianVersion | |
| LTE DebianVersion | |
| EEQ DebianVersion | |
| GRE DebianVersion | |
| SGR DebianVersion |
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 #
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
Instances
| ParseRelations ByteString Source # | |
Defined in Debian.Relation.ByteString Methods parseRelations :: ByteString -> Either ParseError Relations Source # | |
| ParseRelations Text Source # | |
Defined in Debian.Relation.Text Methods parseRelations :: Text -> Either ParseError Relations Source # | |
| ParseRelations String Source # | |
Defined in Debian.Relation.String Methods parseRelations :: String -> Either ParseError Relations Source # | |
Orphan instances
| ParseRelations String Source # | |
Methods parseRelations :: String -> Either ParseError Relations Source # | |