Safe Haskell | None |
---|
- data Resp
- = Str !ByteString
- | Err !ByteString
- | Int !Int64
- | Bulk !ByteString
- | Array !Int [Resp]
- | NullArray
- | NullBulk
- decode :: ByteString -> Either String Resp
- encode :: Resp -> ByteString
- resp :: Parser Resp
- bulk :: Parser Resp
- array :: Parser Resp
- bytes :: Parser ByteString
- crlf :: Parser ()
- nullArray :: Builder
- crlf' :: Builder
- nullBulk :: Builder
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