| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.JsonRpc.ServerAdapter
Contents
Description
Convenience function for creating server-side methods from
Signatures with the package
json-rpc-server.
Synopsis
- toServerMethod :: (ConvertParams ps1 ps2, MethodParams f ps2 m r) => Signature ps1 r -> f -> Method m
- class ConvertParams ps1 ps2 | ps1 -> ps2, ps2 -> ps1
Server Methods
toServerMethod :: (ConvertParams ps1 ps2, MethodParams f ps2 m r) => Signature ps1 r -> f -> Method m #
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 #
Relationship between the parameters in a Signature (ps1)
and the parameters expected by toMethod (ps2) for a given
RPC method.
Minimal complete definition
_toServerParams
Instances
| ConvertParams () () # | |
Defined in Network.JsonRpc.ServerAdapter Methods _toServerParams :: () -> () | |
| ConvertParams ps1 ps2 => ConvertParams (p ::: ps1) (p :+: ps2) # | |
Defined in Network.JsonRpc.ServerAdapter Methods _toServerParams :: (p ::: ps1) -> p :+: ps2 | |