ethul / purescript-angular

AngularJS 1.2 bindings for PureScript (currently in the experimental stage)
MIT License
23 stars 3 forks source link

Topic/promise refactoring #23

Closed ethul closed 9 years ago

ethul commented 9 years ago

Working on an implementation for composing promises using ErrorT and ContT. Based on discussions in issue #18 and pull request #20.

@dylex any thoughts on this?

dylex commented 9 years ago

Seems like a reasonable approach. Leaves all the heavy lifting up to ContT. It does mean that the lower-level promise interface is not particularly useful, but that's probably fine.

ethul commented 9 years ago

Thanks for taking a look. Good points. I've made the changes you suggested. Good catches.

I think this might work for a start. I am open to improvements and additional suggestions on this.