I haven't looked at the details, but I think this is what a library like Reactive from Conal Elliott could do, but as far as I understand it, it is still work in progress.
I wonder whether this can be done in Haskell (see muleherd's comment):
http://www.reddit.com/r/programming/comments/7wi7s/how_continuationbased_web_frameworks_work/
Cristiano
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe