Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Network.TypedProtocol.ReqResp.Server
Synopsis
- data ReqRespServer req resp m a = ReqRespServer {
- recvMsgReq :: req -> m (resp, ReqRespServer req resp m a)
- recvMsgDone :: m a
- reqRespServerPeer :: Monad m => ReqRespServer req resp m a -> Peer (ReqResp req resp) AsServer StIdle m a
Documentation
data ReqRespServer req resp m a Source #
Constructors
ReqRespServer | |
Fields
|
reqRespServerPeer :: Monad m => ReqRespServer req resp m a -> Peer (ReqResp req resp) AsServer StIdle m a Source #
Interpret a particular server action sequence into the server side of the
ReqResp
protocol.