#!/usr/pkg/bin/runhugs +l
-- Hey, Emacs, this is -*- haskell -*-
-- A simple demo   Erik Meijer (erik@cs.ruu.nl)

\begin{code}
module Main (main) where

import CGI

helloWorldHTML :: [(Name,Value)] -> HTML
helloWorldHTML env = page "Hello World" [] [h1 "Hello World!"]

main :: IO ()
main = wrapper (\env -> do{ return (Content{mime = helloWorldHTML env}) })
\end{code}
