X-Git-Url: https://ruin.nu/git/?p=yawbih.git;a=blobdiff_plain;f=Main.hs;h=4e9572cbaf0b246a96667069a304dab7c6acf549;hp=3fcb66788db970fcf0bc036539e124470858634e;hb=01c59ac502d71c3c1ccac422b5665f9e5954a190;hpb=6bb9a6da06d8911d0fc2dd821705323fa3beb0dc diff --git a/Main.hs b/Main.hs index 3fcb667..4e9572c 100644 --- a/Main.hs +++ b/Main.hs @@ -18,8 +18,6 @@ main = do db <- testDB runWithHook [] (\(key:act) -> showPage db (filter (/= '\\') key)) $ showPage db "MainPage" -ps a = standardQuery "Hello" a - editPage db key = do s <- io $ getCurrent db key s' <- case s of @@ -33,10 +31,7 @@ editPage db key = do p empty text "Comment: " c <- textInputField (fieldSIZE 20) - --p $ submit (F2 t a) testing (attr "value" "Send") p $ defaultSubmit (F3 t a c) (savePage db key) (attr "value" "Send") - --submit0 (sp db key []) (attr "value" "Send1") - savePage db key (F3 t a c) = do io $ update db key fulltext author comment