r/haskell • • Nov 02 '12

Escape from Callback Hell, solving real problems with FRP

http://elm-lang.org/learn/Escape-from-Callback-Hell.elm
34 Upvotes

18 comments sorted by

View all comments

Show parent comments

2

u/ninegua Nov 04 '12

FRP is conceptually simple, but under the hood it's still doing same CPS transformation if it has to handle asynchronous FFI. I don't mean to downplay the FRP abstraction -- which is certainly beneficial when it fits -- but the core problem of callback hell is the manual CPS, which has an elegant solution that is Cont monad.

1

u/[deleted] Nov 04 '12

Ah, yes. I can totally agree with that.