X-Git-Url: https://ruin.nu/git/?p=yawbih.git;a=blobdiff_plain;f=Main.hs;h=2fdbbd559f99c7f082766cae3b026e4852bc2701;hp=20ead4304b1beaf8b41fc1ad0f7cc6099c53b855;hb=HEAD;hpb=5d62f948d470010c1f7eb855f7cad681253f315a diff --git a/Main.hs b/Main.hs index 20ead43..2fdbbd5 100644 --- 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