[Haskell-cafe] What unsafeInterleaveIO is unsafe

Yusaku Hashimoto nonowarn at gmail.com
Sun Mar 15 14:31:35 EDT 2009


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
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