| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Redis
- 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.
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 -> ByteString Source