On Sun, 14 Oct 2007, Bryan O'Sullivan wrote:
Yitzchak Gale wrote:
I do think that it is much better to provide IO laziness
using monad transformers (or whatever) rather than
unsafe IO.
That's fair enough. I think it would be great if you were to turn your ideas
into a library and provide a few examples of its use.
I'm also interested in a more structured approach to lazy reading of data.
I used unsafeInterleaveIO several times (including readFile) and got
several problems including too many open files. Problems, that are
certainly solved easily if you have more control over the IO laziness.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe