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

Monads without proper syntax (do-notation) are kinda ugly though

If I didn't learn monads with haskell before, I would think that monads is some useless boilerplate abstraction




https://godbolt.org/z/9zsesq5dh

you are welcome.

[support for all monads, or, you know, actual monad semantics left as an exercise to the reader]


The dot notation for chaining calls on monads works fine.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: