HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

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"
  • 4 types
  • 1 class
  • 1 value

The JSON-RPC remote call monad

2 declarations
classclass JsonRpcM m => JsonRpc (m :: Type -> Type) where
#

JSON-RPC call monad.

Methods

JSON-RPC client settings

2 declarations

Error handling

2 declarations