[Haskell-cafe] What unsafeInterleaveIO is unsafe
Yusaku Hashimoto
nonowarn at gmail.com
Sun Mar 15 14:31:35 EDT 2009
Hello,
I was studying about what unsafeInterleaveIO is.I understood
unsafeInterleaveIO takes an IO action, and delays it. But I couldn't
find any reason why unsafeInterleaveIO is unsafe.
I have already read an example in
http://www.haskell.org/pipermail/haskell-cafe/2009-March/057101.html
says lazy IO may break purity, but I think real matter in this example
are wrong use of seq. did I misread?
More information about the Haskell-Cafe
mailing list