Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.TypedProtocol.PingPong.Server
Synopsis
- data PingPongServer (m :: Type -> Type) a = PingPongServer {
- recvMsgPing :: m (PingPongServer m a)
- recvMsgDone :: a
- pingPongServerPeer :: forall (m :: Type -> Type) a. Monad m => PingPongServer m a -> Server PingPong 'NonPipelined 'StIdle m a
Documentation
data PingPongServer (m :: Type -> Type) a Source #
Constructors
PingPongServer | |
Fields
|
pingPongServerPeer :: forall (m :: Type -> Type) a. Monad m => PingPongServer m a -> Server PingPong 'NonPipelined 'StIdle m a Source #
Interpret a particular server action sequence into the server side of the
PingPong
protocol.