3 ms·
Aren't promises just a monad?
by CMCDragonkai 12y ago
Aren't promises just a monad?
- RehnoLindeque 12y ago(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.
- CMCDragonkai 12y agoIf it has those primitives, why not just wrap them up into a bind operator?