cgi-3001.2.2.3: A library for writing CGI programs

Copyright(c) The University of Glasgow 2001
(c) Bjorn Bringert 2004-2006
(c) Ian Lynagh 2005
(c) Jeremy Shaw 2005
LicenseBSD-style
MaintainerJohn Chee <cheecheeo@gmail.com>
Stabilityexperimental
Portabilitynon-portable (uses Control.Monad.State)
Safe HaskellNone
LanguageHaskell98

Network.CGI.Compat

Description

Compatibility functions for the old Network.CGI API.

Synopsis

Documentation

data Html :: * #

Instances

Show Html 

Methods

showsPrec :: Int -> Html -> ShowS #

show :: Html -> String #

showList :: [Html] -> ShowS #

Monoid Html 

Methods

mempty :: Html #

mappend :: Html -> Html -> Html #

mconcat :: [Html] -> Html #

HTML Html 

Methods

toHtml :: Html -> Html #

toHtmlFromList :: [Html] -> Html #

ADDATTRS Html 

Methods

(!) :: Html -> [HtmlAttr] -> Html #

CHANGEATTRS Html 

Methods

changeAttrs :: Html -> ([HtmlAttr] -> [HtmlAttr]) -> Html #

wrapper :: ([(String, String)] -> IO Html) -> IO () Source #

Deprecated: Use the new interface.

Compatibility wrapper for the old CGI interface. Output the output from a function from CGI environment and input variables to an HTML document.

pwrapper Source #

Arguments

:: PortID

The port to run the server on.

-> ([(String, String)] -> IO Html) 
-> IO () 

Deprecated: Use the new interface.

Compatibility wrapper for the old CGI interface. Runs a simple CGI server. Note: if using Windows, you might need to wrap withSocketsDo around main.

connectToCGIScript :: String -> PortID -> IO () Source #

Deprecated: Use the new interface.

Note: if using Windows, you might need to wrap withSocketsDo around main.