Lazy IO?

Sengan.Baring-Gould@nsc.com Sengan.Baring-Gould@nsc.com
Tue, 3 Sep 2002 14:49:45 -0400


Is there any way to make the IO Monad lazy?

The simplified version of my problem is that I want to
generate an infinite structure from an IOArray and then
consume only the relevant part of it.

The real version of my problem is that the IOArray is
embedded 4 API layers deep and it would be a lot of
effort to change all those APIs and dependent code
for this 1 change.

Sengan