by implicit · 12y ago · 0 comments
foo = do
result <- do_first_thing
do_second_thing result
Kinda sorta roughly desugars into something like this: function foo(cb) { do_first_thing(function(result) { do_second_thing(result, cb); }); }
Synchronous and asynchronous Haskell APIs can have the exact same interface.No comments yet.