Lecture Notes in Computer Science, 2002, Volume 2257/2002, 192-208, DOI: 10.1007/3-540-45587-6_13

WASH/CGI: Server-Side Web Scripting with Sessions and Typed, Compositional Forms

Peter Thiemann

View Related Documents

Abstract

The common gateway interface (CGI) is one of the prevalent methods to provide dynamic contents on the Web. Since it is cumbersome to use in its raw form, there are many libraries that make CGI programming easier.
WASH/CGI is a Haskell library for server-side Web scripting. Its implementation relies on CGI, but its use avoids most of CGI’s drawbacks. It incorporates the concept of a session, provides a typed, compositional approach to constructing interaction elements (forms), and relies on callbacks to specify control flow. From a programmer’s perspective, programming WASH/CGI is like programming a graphical user interface (GUI), where the layout is specified using HTML via a novel monadic interface.

Keywords  Haskell - Monads - CGI Programming

Fulltext Preview

Image of the first page of the fulltext document