HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Modulejsonrpc-tinyclient-1.1.0.0Haskell2010

Network.JsonRpc.TinyClient

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"
Contents
  1. The JSON-RPC remote call monad
  2. JSON-RPC client settings
  3. Error handling
Synopsis

The JSON-RPC remote call monad

JSON-RPC client settings

Error handling