3 ms·
And if you don't trust the developer, it's easy to fix his mistake: unUnsafePerformIO :: a -> IO a unUnsafePerformIO = return
by jrockway 15y ago
And if you don't trust the developer, it's easy to fix his mistake:
unUnsafePerformIO :: a -> IO a
unUnsafePerformIO = return
- ezyang 15y agoSorry, 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:~$
- jrockway 15y agoYes, true. Patch the library if the annotation is wrong :)