JSON-RPC call monad.
Methods
remote :: Remote m a => MethodName -> aRemote call of JSON-RPC method.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulejsonrpc-tinyclient-1.1.0.0Haskell2010
Tiny JSON-RPC 2.0 client. Functions for implementing the client side of JSON-RPC 2.0. See http://www.jsonrpc.org/specification.
If you have monad with MonadIO, MonadThrow and MonadReader instances,
it can be used as base for JSON-RPC calls.
Example:
newtype MyMonad a = ...
instance JsonRpc MyMonad
foo :: Mymonad Text
foo = remote "foo"
Arguments of function are stored into params request array.
Example:
myMethod :: JsonRpc m => Int -> Bool -> m String
myMethod = remote "myMethod"
JSON-RPC call monad.
remote :: Remote m a => MethodName -> aRemote call of JSON-RPC method.
Name of called method.
JSON-RPC client state vars.
JsonRpcHttpClientjsonRpcManager :: ManagerHTTP connection manager.
jsonRpcServer :: StringRemote server URI.
JsonRpcWsClientjsonRpcWsConnection :: ConnectionWebSocket connection.
Show JsonRpcClientDefined in jsonrpc-tinyclient-1.1.0.0 · Network.JsonRpc.TinyClientCreate default JsonRpcClient settings.
Eq JsonRpcExceptionDefined in jsonrpc-tinyclient-1.1.0.0 · Network.JsonRpc.TinyClientShow JsonRpcExceptionDefined in jsonrpc-tinyclient-1.1.0.0 · Network.JsonRpc.TinyClientException JsonRpcExceptionDefined in jsonrpc-tinyclient-1.1.0.0 · Network.JsonRpc.TinyClient