1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
-- |A module for working with debian relationships <http://www.debian.org/doc/debian-policy/ch-relationships.html>
module Debian.Relation.ByteString
( -- * Types
PkgName
, AndRelation
, OrRelation
, Relations
, Relation(..)
, ArchitectureReq(..)
, VersionReq(..)
-- * Helper Functions
, checkVersionReq
-- * Relation Parser
, RelParser
, ParseRelations(..)
) where
import qualified Data.ByteString.Char8 as C
-- Local Modules
--import Debian.Relation.Common
import Debian.Relation.String
--import Debian.Version
-- * ParseRelations
-- For now we just wrap the string version
instance ParseRelations C.ByteString where
parseRelations byteStr = parseRelations (C.unpack byteStr)
|