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