| Haskell Hierarchical Libraries (cgi package) | Source code | Contents | Index

Network.CGI.Compat |

Portability | non-portable (uses Control.Monad.State)
Stability | experimental
Maintainer | bjorn@bringert.net

Description
Compatibility functions for the old Network.CGI API.
Synopsis

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

Documentation
Html
wrapper :: ([(String, String)] -> IO Html) -> IO ()
Compatibility wrapper for the old CGI interface. Output the output from a function from CGI environment and input variables to an HTML document.
pwrapper

:: PortID | The port to run the server on.
-> ([(String, String)] -> IO Html) |
-> IO () |
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 ()
Note: if using Windows, you might need to wrap `withSocketsDo` around main.
Produced by Haddock version 0.8