Copyright | (c) Abhinav Gupta 2015 |
---|---|
License | BSD3 |
Maintainer | Abhinav Gupta <mail@abhinavg.net> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Protocol = Protocol {
- serializeValue :: forall a. IsTType a => Value a -> Builder
- serializeMessage :: Message -> Builder
- deserializeValue' :: forall a. IsTType a => ByteString -> Either String (ByteString, Value a)
- deserializeMessage :: ByteString -> Either String Message
- deserializeValue :: forall a. IsTType a => Protocol -> ByteString -> Either String (Value a)
Documentation
Protocols define a specific way to convert values into binary and back.
Protocol | |
|
deserializeValue :: forall a. IsTType a => Protocol -> ByteString -> Either String (Value a) Source #
Reads a Value
from a ByteString.