[Add note about installing happstack. Removed trailing whitespace. Jeremy Shaw **20130221184545 Ignore-this: 63f435c8fe1fe517bd79ef5dd19ee4e6 ] hunk ./HelloWorld.lhs 1 -If you have not already installed Happstack -- you will need to do that first. You can find instructions on how to install Happstack here. + hunk ./HelloWorld.lhs 80 -> , validator :: Maybe (Response -> IO Response) -> , logAccess :: forall t. FormatTime t => -> Maybe (String -> String -> t -> String -> Int -> +> , validator :: Maybe (Response -> IO Response) +> , logAccess :: forall t. FormatTime t => +> Maybe (String -> String -> t -> String -> Int -> hunk ./HelloWorld.lhs 92 -
validator
-
on-the-fly validation of output during development
+
validator
+
on-the-fly validation of output during development
hunk ./HelloWorld.lhs 132 -

ok is one of several combinators which can be used to set the HTTP response code. In this case, it will set the response code to 200 OK. Happstack.Server.SimpleHTTP contains similar functions for the common HTTP response codes including, notFound, seeOther, badRequest and more. These functions all act like the normal return function, except they also set the response code.

+

ok is one of several combinators which can be used to set the HTTP response code. In this case, it will set the response code to 200 OK. Happstack.Server.SimpleHTTP contains similar functions for the common HTTP response codes including, notFound, seeOther, badRequest and more. These functions all act like the normal return function, except they also set the response code.