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

Remember that Haskell is lazy. In broad strokes, the way you control when things happen is to sequence them by combining them (directly or indirectly) into the massive IO action that becomes main.

If you don't care when it happens, you can use unsafePerformIO - which is just fine for debugging, though there are often better approaches.



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

Search: