Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
StIdle :: forall (req :: Type -> Type). ReqResp req | |
StBusy :: forall res (req :: Type -> Type). res -> ReqResp req | |
StDone :: forall (req :: Type -> Type). ReqResp req |