Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



> 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?


"And it is used in many libraries."

Citation needed - or at least clarification as to what "many" means here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: