[Haskell-cafe] monad-coroutine alternatives
alex323 at gmail.com
Fri Dec 2 20:51:16 UTC 2016
On Fri, 2 Dec 2016 15:41:54 -0500
Mario Blažević <mblazevic at stilo.com> wrote:
> On 2016-12-02 02:29 PM, Alex wrote:
> > Hello,
> > Are there any data structures isomorphic to Coroutine available
> > on Hackage?
> I believe the top recommendation is FreeT:
> Note, if the reason you need the coroutines is to implement
> streaming, you may want to proceed straight to Pipes or Conduit.
Thanks! I am implementing a network protocol, so I need to suspend the
computation while I wait for Alice/Bob to send a response. The protocol
is specified as a series of tokens to form a DSL.
More information about the Haskell-Cafe