News for hackers. Stuff that matters.
Re:Testable IO in Haskell by creichert on Monday June 22, 2015 @02:58PM (#9760441)
You can prevent access to `unsafePerformIO` and other unsafe language features using "Safe" Haskell (e.g. -XSafe). This happens at compile time. Functions like unsafePerformIO (IO a -> a), pure C FFI functions, overlapping instances,and TemplateHaskell are not allowed. Nothing is stopping you from accessing C but you can force FFI function to reside in IO.

There are no comments on this comment yet.