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

Funny, but I remember the difference between `>>=` and `>>` even though I haven't written Haskell in a couple of years. `>>=` passes to the right the value coming from the left, while `>>` drops it.

To give an example, you use `>>=` after `readFile` to do something with the contents. You use `>>` after `putStrLn` since `putStrLn` doesn't return a meaningful value.



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

Search: