Hacker News new | ask | show | jobs
by eru 997 days ago
> Comprehensions in Haskell originally worked for all monads too.

And that behaviour is still accessible via a compiler extension.

1 comments

Idris 2 still has both "monad comprehensions" and an applicative equivalent called "idiom brackets".

https://idris2.readthedocs.io/en/latest/tutorial/interfaces....

https://idris2.readthedocs.io/en/latest/tutorial/interfaces....