colorless-2.2.14: Colorless

Safe HaskellNone
LanguageHaskell2010

Colorless.Client.Exchange

Documentation

data Request meta a Source #

Constructors

Request Version Version meta (Expr a) 

Instances

(ToVal meta, HasType meta, ToAst a, HasType a) => ToJSON (Request meta a) Source # 

Methods

toJSON :: Request meta a -> Value #

toEncoding :: Request meta a -> Encoding #

toJSONList :: [Request meta a] -> Value #

toEncodingList :: [Request meta a] -> Encoding #

data Response err a Source #

Instances

(Eq a, Eq err) => Eq (Response err a) Source # 

Methods

(==) :: Response err a -> Response err a -> Bool #

(/=) :: Response err a -> Response err a -> Bool #

(Show a, Show err) => Show (Response err a) Source # 

Methods

showsPrec :: Int -> Response err a -> ShowS #

show :: Response err a -> String #

showList :: [Response err a] -> ShowS #

(ToVal err, HasType err, ToVal a, HasType a) => ToJSON (Response err a) Source # 

Methods

toJSON :: Response err a -> Value #

toEncoding :: Response err a -> Encoding #

toJSONList :: [Response err a] -> Value #

toEncodingList :: [Response err a] -> Encoding #

(FromVal err, HasType err, FromVal a, HasType a) => FromJSON (Response err a) Source # 

Methods

parseJSON :: Value -> Parser (Response err a) #

parseJSONList :: Value -> Parser [Response err a] #