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

This is beside the point. Haskell have a number of built-in unpure operations like putStrLn. You can use the built-in IO type to execute these unpure operations.

If you define your own type called IO you can't use it to execute unpure operations.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: