We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abecdaf commit a81caa1Copy full SHA for a81caa1
typed-protocols-examples/src/Network/TypedProtocol/PingPong/Client.hs
@@ -52,7 +52,7 @@ data PingPongClient m a where
52
-- 'PingPong' protocol.
53
--
54
pingPongClientPeer
55
- :: Monad m
+ :: Functor m
56
=> PingPongClient m a
57
-> Client PingPong NonPipelined Z StIdle m a
58
@@ -76,9 +76,7 @@ pingPongClientPeer (SendMsgPing next) =
76
-- one corresponding continuation 'kPong' to handle that response.
77
-- The pong reply has no content so there's nothing to pass to our
78
-- continuation, but if there were we would.
79
- Effect $ do
80
- client <- next
81
- pure $ pingPongClientPeer client
+ Effect $ pingPongClientPeer <$> next
82
83
84
0 commit comments