json-rpc-generic-0.2.1.4: Generic encoder and decode for JSON-RPC

Safe HaskellNone
LanguageHaskell2010

Data.JsonRpc.Response

Documentation

newtype Response e a Source #

Constructors

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

Instances

Functor (Response e) Source # 

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 # 

Methods

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

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

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

Methods

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

show :: Response e a -> String #

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