News for hackers. Stuff that matters.
Re:Haskell Is Exceptionally Unsafe by tibbe on Tuesday August 14, 2012 @11:55AM (#4381540)
I would say `unsafePerformIO` exist for calling C code. Since the Haskell type system can't prove that the C function you're calling is pure, the programmer needs to assert this fact by using `unsafePerformIO` at the call site. There are other possible uses of course, but I'd say this is the main one.

There are no comments on this comment yet.