how to do lazy IO like getContents?
Ben Escoto
bescoto at stanford.edu
Sat Oct 18 19:26:45 EDT 2003
On Sun, 19 Oct 2003 02:03:58 +0200 Nick Name <nick.name at inwind.it> 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 : http://porky.devel.redhat.com/pipermail/haskell/attachments/20031018/6acec389/attachment.bin
More information about the Haskell
mailing list