Hacker News new | ask | show | jobs
by CMCDragonkai 4078 days ago
Aren't promises just a monad?
1 comments

(Task x) has monadic structure, yes (see andThen, succeed). Naturally it also looks like Functor, Applicative, etc.

However, there is no way to work with monads in the abstract in Elm (yet), there is only the concrete API.

If it has those primitives, why not just wrap them up into a bind operator?