packstream-0.1.0.2: PackStream converter for Neo4j BOLT protocol
Safe HaskellNone
LanguageHaskell2010

Data.PackStream.Internal.Binary

Synopsis

Documentation

class Interpret a where Source #

The data types that can be intepreted from ByteString

Minimal complete definition

Nothing

Methods

interpret :: MonadError PackStreamError m => ByteString -> m a Source #

Interpret a ByteString as a specific type of raise PackStreamError

Instances

Instances details
Interpret Double Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Int Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Int8 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Int16 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Int32 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Int64 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Integer Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Word Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Word8 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Word16 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Word32 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Word64 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret ByteString Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Interpret Text Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

class Serialize a where Source #

The data types that can be serialized into ByteString

Minimal complete definition

Nothing

Methods

serialize :: a -> ByteString Source #

Serialize a specific data type into a ByteString

default serialize :: Binary a => a -> ByteString Source #

Instances

Instances details
Serialize Double Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Int Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Int8 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Int16 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Int32 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Int64 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Integer Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Word Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Word8 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Word16 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Word32 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Word64 Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize ByteString Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

Serialize Text Source # 
Instance details

Defined in Data.PackStream.Internal.Binary

inDepth :: Integral a => Int -> a -> Bool Source #

Check that the Integral value is in the n-bit bounds