--- /dev/null
+module Main where
+
+import CGI hiding (div, head, map, span)
+import RawCGIInternal
+import CGIOutput
+
+main = start [] cgi
+
+cgi CGIInfo {cgiUrl = url, cgiPathInfo = pi, cgiContentType = ct, cgiContents = c, cgiCookies = co, cgiArgs = as, cgiHandle = h} parms = do
+ putStr "content-type: text/html\n\n"
+ print parms
+ print url
+ print pi
+ print ct
+ print co
+ print co
+ print as
+ print h
+ case assocParm "test" parms of
+ Nothing -> putStr "Parameter 'test' not provided"
+ Just x -> putStr $ "Value of test = "++x
--Keyword -> (Full text,date)
getCurrent :: a -> String -> IO (Maybe (String,String))
- --Keyword -> [(id,date)]
+ --Keyword -> [(id,date,author,comment)]
getList :: a -> String -> IO [(String, String, String, String)]
--Keyword -> id -> Full text
--Keyword -> Full text -> id
update :: a -> String -> String -> String -> String -> IO String
+data Markup = Text String
+ | Bold String
+ | Paragraph [Markup]
+
+type Document = [Markup]
+
newtype PGB = PGB DBService
createPGB :: String -> String -> String -> String -> IO PGB