msgpack-rpc-conduit-0.0.7: A MessagePack-RPC Implementation
Safe HaskellTrustworthy
LanguageHaskell2010

Network.MessagePack.Client

Synopsis

MessagePack Client type

type Client a = ClientT IO a Source #

data ClientT m a Source #

Instances

Instances details
Monad m => Monad (ClientT m) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

(>>=) :: ClientT m a -> (a -> ClientT m b) -> ClientT m b #

(>>) :: ClientT m a -> ClientT m b -> ClientT m b #

return :: a -> ClientT m a #

Functor m => Functor (ClientT m) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

fmap :: (a -> b) -> ClientT m a -> ClientT m b #

(<$) :: a -> ClientT m b -> ClientT m a #

Monad m => Applicative (ClientT m) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

pure :: a -> ClientT m a #

(<*>) :: ClientT m (a -> b) -> ClientT m a -> ClientT m b #

liftA2 :: (a -> b -> c) -> ClientT m a -> ClientT m b -> ClientT m c #

(*>) :: ClientT m a -> ClientT m b -> ClientT m b #

(<*) :: ClientT m a -> ClientT m b -> ClientT m a #

MonadIO m => MonadIO (ClientT m) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

liftIO :: IO a -> ClientT m a #

MonadThrow m => MonadThrow (ClientT m) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

throwM :: Exception e => e -> ClientT m a #

MonadCatch m => MonadCatch (ClientT m) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

catch :: Exception e => ClientT m a -> (e -> ClientT m a) -> ClientT m a #

(MonadIO m, MonadThrow m, MessagePack o) => RpcType (ClientT m o) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

rpcc :: Text -> [Object] -> ClientT m o Source #

Call RPC method

call :: RpcType a => Text -> a Source #

Call an RPC Method

RPC error

class RpcType r Source #

Minimal complete definition

rpcc

Instances

Instances details
(MessagePack o, RpcType r) => RpcType (o -> r) Source # 
Instance details

Defined in Network.MessagePack.Types.Client

Methods

rpcc :: Text -> [Object] -> o -> r Source #

(MonadIO m, MonadThrow m, MessagePack o) => RpcType (ClientT m o) Source # 
Instance details

Defined in Network.MessagePack.Client.Internal

Methods

rpcc :: Text -> [Object] -> ClientT m o Source #