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

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.




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

Search: