thrift-0.12.0: Haskell bindings for the Apache Thrift RPC system

Safe HaskellNone
LanguageHaskell2010

Thrift.Protocol

Synopsis

Documentation

class Protocol a where Source #

Instances
Transport t => Protocol (JSONProtocol t) Source # 
Instance details

Defined in Thrift.Protocol.JSON

Transport t => Protocol (CompactProtocol t) Source # 
Instance details

Defined in Thrift.Protocol.Compact

Transport t => Protocol (BinaryProtocol t) Source # 
Instance details

Defined in Thrift.Protocol.Binary

(Transport i, Transport o) => Protocol (HeaderProtocol i o) Source # 
Instance details

Defined in Thrift.Protocol.Header

runParser :: (Protocol p, Show a) => p -> Parser a -> IO a Source #

bsToDouble :: ByteString -> Double Source #

Converts a ByteString to a Floating point number The ByteString is assumed to be encoded in network order (Big Endian) therefore the behavior of this function varies based on whether the local machine is big endian or little endian.