json-rpc-client-0.1.4.0: JSON-RPC 2.0 on the client side.

Safe HaskellNone
LanguageHaskell2010

Network.JsonRpc.ServerAdapter

Contents

Description

Convenience function for creating server-side methods from Signatures with the package json-rpc-server.

Synopsis

Server Methods

toServerMethod :: (ConvertParams ps1 ps2, MethodParams f ps2 m r) => Signature ps1 r -> f -> Method m Source

Creates a method from the given signature and function. The parameters of the resulting method match the order and types of the parameters in the signature and are all Required.

class ConvertParams ps1 ps2 | ps1 -> ps2, ps2 -> ps1 Source

Relationship between the parameters in a Signature (ps1) and the parameters expected by toMethod (ps2) for a given RPC method.

Instances

ConvertParams () () 
ConvertParams ps1 ps2 => ConvertParams ((:::) p ps1) ((:+:) p ps2)