redis-resp-1.0.0: REdis Serialization Protocol (RESP) implementation.

Safe HaskellSafe
LanguageHaskell2010

Data.Redis.Resp

Synopsis

Documentation

data Resp Source #

Resp defines the various RESP constructors.

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 
Instances
Eq Resp Source # 
Instance details

Defined in Data.Redis.Resp

Methods

(==) :: Resp -> Resp -> Bool #

(/=) :: Resp -> Resp -> Bool #

Ord Resp Source # 
Instance details

Defined in Data.Redis.Resp

Methods

compare :: Resp -> Resp -> Ordering #

(<) :: Resp -> Resp -> Bool #

(<=) :: Resp -> Resp -> Bool #

(>) :: Resp -> Resp -> Bool #

(>=) :: Resp -> Resp -> Bool #

max :: Resp -> Resp -> Resp #

min :: Resp -> Resp -> Resp #

Show Resp Source # 
Instance details

Defined in Data.Redis.Resp

Methods

showsPrec :: Int -> Resp -> ShowS #

show :: Resp -> String #

showList :: [Resp] -> ShowS #

resp :: Parser Resp Source #

An attoparsec parser to parse a single Resp value.