Unsafe hGetContents

Florian Weimer fw at deneb.enyo.de
Wed Sep 16 16:31:29 EDT 2009


* Don Stewart:

> fw:
>> 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.)
>
> Isn't this a broader complaint about lazy IO in general?

Yes, sort of.  But doesn't lazy input derive its justification from
being present in the prelude?


More information about the Haskell-prime mailing list