module Text.ProtocolBuffers.Header
( append, emptyBS
, pack, fromMaybe, ap
, fromDistinctAscList, member
, throwError,catchError
, choice, sepEndBy, spaces, try
, module Data.Generics
, module Text.ProtocolBuffers.Basic
, module Text.ProtocolBuffers.Extensions
, module Text.ProtocolBuffers.Identifiers
, module Text.ProtocolBuffers.Reflections
, module Text.ProtocolBuffers.TextMessage
, module Text.ProtocolBuffers.Unknown
, module Text.ProtocolBuffers.WireMessage
) where
import Control.Monad(ap)
import Control.Monad.Error.Class(throwError,catchError)
import Data.ByteString.Lazy(empty)
import Data.ByteString.Lazy.Char8(pack)
import Data.Generics(Data(..))
import Data.Maybe(fromMaybe)
import Data.Sequence((|>))
import Data.Set(fromDistinctAscList,member)
import Text.Parsec(choice, sepEndBy, spaces, try)
import Text.ProtocolBuffers.Basic
import Text.ProtocolBuffers.Extensions
( wireSizeExtField,wirePutExtField,loadExtension,notExtension
, wireGetKeyToUnPacked, wireGetKeyToPacked
, GPB,Key(..),ExtField,ExtendMessage(..),MessageAPI(..),ExtKey(wireGetKey),PackedSeq )
import Text.ProtocolBuffers.Identifiers(FIName(..),MName(..),FName(..))
import Text.ProtocolBuffers.Reflections
( ReflectDescriptor(..),ReflectEnum(..),EnumInfo(..),ProtoName(..)
, GetMessageInfo(GetMessageInfo),DescriptorInfo(extRanges),makePNF )
import Text.ProtocolBuffers.TextMessage
import Text.ProtocolBuffers.Unknown
( UnknownField,UnknownMessage(..),wireSizeUnknownField,wirePutUnknownField,catch'Unknown )
import Text.ProtocolBuffers.WireMessage
( Wire(..)
, prependMessageSize,putSize,splitWireTag
, wireSizeReq,wireSizeOpt,wireSizeRep
, wirePutReq,wirePutOpt,wirePutRep
, wirePutPacked,wireSizePacked
, getMessageWith,getBareMessageWith,wireGetEnum,wireGetPackedEnum
, wireSizeErr,wirePutErr,wireGetErr
, unknown,unknownField
, fieldIdOf)
append :: Seq a -> a -> Seq a
append = (|>)
emptyBS :: ByteString
emptyBS = Data.ByteString.Lazy.empty