how to do lazy IO like getContents?

Ben Escoto bescoto at
Sat Oct 18 19:26:45 EDT 2003

On Sun, 19 Oct 2003 02:03:58 +0200 Nick Name < at> wrote:
> You have to use unsafeInterleaveIO, wich lazily defers the IO action 
> passed as an argument. Look for this function in your documentation, 
> both hugs and ghc have it.

Got it, thanks.  Do you know in what sense it is "unsafe" though?  Are
there some pitfalls I should be aware of?

Ben Escoto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the Haskell mailing list