From e0e6079c9141a0c2d7d2a6dda50496e237bfc8bb Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 2 Sep 2014 12:27:47 +0000 Subject: src/server: refactoring to isolate dependencies on the cgi/fastcgi packages * Introducing the module CGI, re-exporting a subset of the cgi package. It might complete replace the cgi package in the future. * Introducing the module CGIUtils, containing functions from FastCGIUtils that have nothing to do with fastcgi. Some low level hackery with unsafePerformIO and global variables was left in FastCGIUtils, but it is actually not used, neither for gf -server nor exec/pgf-fcgi.hs. --- src/server/CGI.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/server/CGI.hs (limited to 'src/server/CGI.hs') diff --git a/src/server/CGI.hs b/src/server/CGI.hs new file mode 100644 index 000000000..1a77351e2 --- /dev/null +++ b/src/server/CGI.hs @@ -0,0 +1,11 @@ +-- | Isolate dependencies on the problematic cgi package to this module +module CGI(module C) where +import Network.CGI as C( + CGI,ContentType(..),Accept(..),Language(..), + getVarWithDefault,readInput,negotiate,requestAcceptLanguage,getInput, + setHeader,output,outputFPS,outputError, + handleErrors,catchCGI,throwCGI, + liftIO) +import Network.CGI.Protocol as C(CGIResult(..),CGIRequest(..),Input(..), + Headers,HeaderName(..)) +import Network.CGI.Monad as C(runCGIT) -- cgit v1.2.3