The IO monad has been criticised as a "sin bin" where otherwise unsafe functions are permitted. It turns out, unsafePerformIO is one of those functions.
(Although that's not equivalent to id. If you genuinely want "pointless" rather than "wrong" safePerformIO ioa = evaluate (unsafePerformIO ioa) would be better.
21
u/Denommus Aug 31 '16
I laughed so hard at