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

Doesn't Haskell do this to some degree with the IO monad? Functions that are not supposed to do IO directly simply have a more specific type signature, like taking in a stream and returning a buffer for example.


Yes, although it can be violated by unsafePerformIO and friends. Haskell's is not an "assured" system.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: