Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Resp
- = Str !ByteString
- | Err !ByteString
- | Int !Int64
- | Bulk !ByteString
- | Array !Int [Resp]
- | NullArray
- | NullBulk
- resp :: Parser Resp
- encode :: Resp -> ByteString
- decode :: ByteString -> Either String Resp
Documentation
Resp
defines the various RESP constructors.
Str !ByteString | RESP simple strings |
Err !ByteString | RESP errors |
Int !Int64 | RESP integers |
Bulk !ByteString | RESP bulk strings |
Array !Int [Resp] | RESP arrays |
NullArray | |
NullBulk |
encode :: Resp -> ByteString Source