Hacker News new | past | comments | ask | show | jobs | submit login

You can define monads in OCaml just fine using the module system, but there's no do-notation. I think there is a PPX extension to give that, though.



The ppx extension in question is called let-syntax, but also 4.08 is almost here and has built-in support for something similar.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: