| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Network.TypedProtocol.Stateful.ReqResp.Type
Description
An RPC protocol which in which request type determines respond time.
Unlike in the Type where req and resp
types where statically defined, here the respond type is dynamically
determined by the type of request.
Documentation
data ReqResp (req :: Type -> Type) where Source #
Constructors
| StIdle :: forall (req :: Type -> Type). ReqResp req | |
| StBusy :: forall res (req :: Type -> Type). res -> ReqResp req | |
| StDone :: forall (req :: Type -> Type). ReqResp req |