cgi-3001.1.7.2: A library for writing CGI programsSource codeContentsIndex
Network.CGI.Compat
Portabilitynon-portable (uses Control.Monad.State)
Stabilityexperimental
Maintainerbjorn@bringert.net
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 Source
wrapper :: ([(String, String)] -> IO Html) -> IO ()Source
Compatibility wrapper for the old CGI interface. Output the output from a function from CGI environment and input variables to an HTML document.
pwrapperSource
:: PortIDThe 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 Network.withSocketsDo around main.
connectToCGIScript :: String -> PortID -> IO ()Source
Note: if using Windows, you might need to wrap Network.withSocketsDo around main.
Produced by Haddock version 2.6.1