hsp-0.7.1: Haskell Server Pages is a library for writing dynamic server-side web pages.

Safe HaskellNone

HSP

Synopsis

Documentation

type HSP = HSPT IOSource

The HSP monad is a reader wrapper around the IO monad, but extended with an XMLGenerator wrapper. type HSP' = ReaderT HSPEnv IO type HSP = XMLGenT HSP'

type HSPT m = XMLGenT (HSPT' m)Source

runHSP :: Maybe XMLMetaData -> HSP a -> HSPEnv -> IO (Maybe XMLMetaData, a)Source

Runs a HSP computation in a particular environment. Since HSP wraps the IO monad, the result of running it will be an IO computation.

getEnv :: HSP HSPEnvSource

Supplies the HSP environment.

doIO :: IO a -> HSP aSource

Execute an IO computation within the HSP monad.

catch :: HSP a -> (Exception -> HSP a) -> HSP aSource

Catch a user-caused exception.

module HSP.Env

module HSP.XML

module HSP.HTML