Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are Haskell continuation based web framework?

Occasionally I encounter the notion of continuation based web frameworks for Haskell. What does that mean exactly?

Continuations as I know them are gloried goto control structures. I fail to see how they relate to web stuff.

What exactly would using continuations give?

like image 234
user782220 Avatar asked Dec 29 '14 01:12

user782220


1 Answers

A continuation-based web framework inverts flow of control in a web application. Instead of being page-oriented, it's flow-oriented. Displaying a web page is treated the same way as displaying a modal dialog in a desktop application. The flow of control (from the perspective of the user of the framework) is that one imperative action can request the display of multiple pages. The continuation being referred to is the rest of the action the user started.

like image 60
Carl Avatar answered Oct 03 '22 22:10

Carl