7 ms·
As codygman mentions the IO Monad doesn't make haskell impure. unsafePerformIO :: IO a -> a on the other hand does make haskell impure when it is used. And it
by karshan 12y ago
As codygman mentions the IO Monad doesn't make haskell impure.
unsafePerformIO :: IO a -> a on the other hand does make haskell impure when it is used. And it is used in many libraries.
- tome 12y ago> unsafePerformIO :: IO a -> a on the other hand does make haskell impure when it is used. And it is used in many libraries. Hmm, does it really? Is 'unsafePerformIO (return 1)' impure?
- dllthomas 12y ago"And it is used in many libraries." Citation needed - or at least clarification as to what "many" means here.