unsafeness of unsafeInterleaveIO
Andre Pang
ozone at algorithm.com.au
Fri Jun 10 14:30:59 EDT 2005
On 10/06/2005, at 11:16 AM, Remi Turk wrote:
> Are you sure you're not talking about unsafePerformIO?
>
> System.IO.Unsafe.unsafePerformIO :: IO a -> a
> System.IO.Unsafe.unsafeInterleaveIO :: IO a -> IO a
[written to Lennert Augustsson]: yes, I think you misread
unsafeInterleaveIO as unsafePerformIO, Lennert :)
> As far as I know unsafeInterleaveIO in general isn't any unsafer
> than it's "special cases" getContents / hGetContents / readFile /
> getChanContents. Although fighting lazy IO might occasionally
> drive someone mad, which could arguably be called "unsafe".
OK, that's more-or-less what I thought. Thanks Remi!
--
% Andre Pang : trust.in.love.to.save <http://www.algorithm.com.au/>
More information about the Glasgow-haskell-users
mailing list