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.
This commit is contained in:
hallgren
2014-09-02 12:27:47 +00:00
parent 442dadf100
commit 0e87a88f4b
11 changed files with 149 additions and 128 deletions

View File

@@ -9,7 +9,7 @@ import PGF
import GF.Compile.ToAPI
import Network.CGI
import Text.JSON
import FastCGIUtils
import CGIUtils
import Cache
import qualified ExampleDemo as E