json-rpc-generic-0.2.1.6: Generic encoder and decode for JSON-RPC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.JsonRpc.Response

Documentation

newtype Response e a Source #

Constructors

Response (Either (Failure e) (Success a)) 

Instances

Instances details
Functor (Response e) Source # 
Instance details

Defined in Data.JsonRpc.Response

Methods

fmap :: (a -> b) -> Response e a -> Response e b #

(<$) :: a -> Response e b -> Response e a #

(Eq e, Eq a) => Eq (Response e a) Source # 
Instance details

Defined in Data.JsonRpc.Response

Methods

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

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

(Show e, Show a) => Show (Response e a) Source # 
Instance details

Defined in Data.JsonRpc.Response

Methods

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

show :: Response e a -> String #

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

(ToJSON e, ToJSON a) => ToJSON (Response e a) Source # 
Instance details

Defined in Data.JsonRpc.Instances

(FromJSON e, FromJSON a) => FromJSON (Response e a) Source # 
Instance details

Defined in Data.JsonRpc.Instances