]> ruin.nu Git - yawbih.git/commitdiff
minor change master
authorMichael Andreen <harv@ruin.nu>
Mon, 11 Apr 2005 19:11:38 +0000 (19:11 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 26 Jan 2008 11:33:20 +0000 (12:33 +0100)
Main.hs

diff --git a/Main.hs b/Main.hs
index 20ead4304b1beaf8b41fc1ad0f7cc6099c53b855..2fdbbd559f99c7f082766cae3b026e4852bc2701 100644 (file)
--- a/Main.hs
+++ b/Main.hs
@@ -6,21 +6,16 @@ import CGIOutput
 import CGITypes
 import System
 import Wiki
+import Backend
 import Control.Monad
 
 import Text.ParserCombinators.Parsec
 
-testDB = createPGB "localhost" "wiki" "wiki" "12wiki34db"
-
-test key = do
-       db <- testDB
-       s <- getCurrent db key 
-       print s
-       
---main = start [] cgi
+--backend = createPGB "hostname" "database" "user" "password"
+--If you want to implement this function here, then remove the import of Backend
 
 main = do 
-       db <- testDB
+       db <- backend
        runWithHook [] (\(key:act) -> showPage db (filter (/= '\\') key)) $ showPage db "itproj3"
 
 editPage db key = do