| 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.
- 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 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 () () Source | |
| ConvertParams ps1 ps2 => ConvertParams ((:::) p ps1) ((:+:) p ps2) Source |