Unsafe hGetContents

Florian Weimer fw at deneb.enyo.de
Sat Oct 3 14:59:26 EDT 2009

* Nicolas Pouillard:

> Excerpts from Florian Weimer's message of Wed Sep 16 22:17:08 +0200 2009:
>> Are there any plans to get rid of hGetContents and the semi-closed
>> handle state for Haskell Prime?
>> (I call hGetContents unsafe because it adds side effects to pattern
>> matching, stricly speaking invalidating most of the transformations
>> which are expected to be valid in a pure language.)
> Would you consider something like [1] as an acceptable replacement?
> [1]: http://hackage.haskell.org/package/safe-lazy-io

It only addresses two known issues with lazy I/O, doesn't it?  It
still injects input operations into pure code not in the IO monad.

More information about the Haskell-prime mailing list