Network.CGI.Compat

cgi-3001.2.2.2: 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
License | BSD-style
Maintainer | John Chee <cheecheeo@gmail.com>
Stability | experimental
Portability | non-portable (uses Control.Monad.State)
Safe Haskell | None
Language | Haskell98

Network.CGI.Compat

Description

Compatibility functions for the old Network.CGI API.

Synopsis

- data Html :: *
- wrapper :: ([(String, String)] -> IO Html) -> IO ()
- pwrapper :: PortID -> ([(String, String)] -> IO Html) -> IO ()
- connectToCGIScript :: String -> PortID -> IO ()

# Documentation

data Html :: *

Instances

Show Html |
Monoid Html |
HTML Html |
ADDATTRS Html |
CHANGEATTRS Html |

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

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

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 ()

Deprecated: Use the new interface.

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