colchis-0.2.0.1: Rudimentary JSON-RPC 2.0 client over raw TCP.

Safe HaskellNone

Network.Colchis.Protocol

Synopsis

Documentation

type Protocol s m e = forall r. (s, Value) -> Proxy Value Value (s, Value) Value (ExceptT e m) rSource

A bidirectional Proxy waiting for a request, ready to be composed with +>> or >+>.

Protocols format incoming requests from downstream before sending them upstream. They also extract the values from returning protocol responses and send them downstream.

Protocols isolate clients from the specific details of each protocol.