Unsafe hGetContents

Nicolas Pouillard nicolas.pouillard at gmail.com
Mon Sep 21 07:57:11 EDT 2009


Excerpts from Simon Marlow's message of Mon Sep 21 11:41:38 +0200 2009:
> On 16/09/2009 21:17, Florian Weimer wrote:
> > 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.)
> 
> There is no current proposal for this, no.  Feel free to start one; 
> information about the process for Haskell Prime proposals is here
> 
> http://hackage.haskell.org/trac/haskell-prime/wiki/Process

An alternate proposition (instead of removing it) would to to move it to
System.IO.Unsafe.

-- 
Nicolas Pouillard
http://nicolaspouillard.fr


More information about the Haskell-prime mailing list