Re:Is Haskell the Cure?
by jrockway on Tuesday October 04, 2011 @12:06AM
(#3069307)
And if you don't trust the developer, it's easy to fix his mistake:
[ Parent
| on HN ]
Sorry, that doesn't actually work.
ezyang@ezyang:~$ cat Test.hs
import System.IO.Unsafe
unUnsafePerformIO = return
main = do
let a = unUnsafePerformIO (unsafePerformIO (putStrLn "boom"))
a
a
ezyang@ezyang:~$ runghc Test.hs
ezyang@ezyang:~$