[Haskell-cafe] Coroutines

Derek Elkins derek.a.elkins at gmail.com
Wed Dec 24 23:11:52 EST 2008

On Thu, 2008-12-18 at 11:01 +0000, Robin Green wrote:
> In my opinion, in Haskell, you don't need coroutines because you have
> lazy evaluation.
> You example below is simply an example of a heterogenous list being
> read. The simplest way to implement a heterogenous list in Haskell is
> to use a tuple. Or you could use the HList package.

Lazy evaluation obviates some, but certainly not all uses of coroutines.

More information about the Haskell-Cafe mailing list