]> ruin.nu Git - yawbih.git/commitdiff
class
authorMichael Andreen <harv@ruin.nu>
Sat, 4 Dec 2004 21:35:09 +0000 (21:35 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 4 Dec 2004 21:35:09 +0000 (21:35 +0000)
Wiki.hs

diff --git a/Wiki.hs b/Wiki.hs
index 916829e11a872db3fd7b99d37fb5e68954bf844e..c4b7166f377a508ac021b55fcedfb1e024733269 100644 (file)
--- a/Wiki.hs
+++ b/Wiki.hs
@@ -2,20 +2,19 @@ module Wiki (
 
 ) where
 
-import Graphics.UI.WXCore.Db
+class WikiBackend a where
+       --Keyword -> Full text
+       getCurrent :: a -> String -> IO String
 
-{-Keyword -> Full text
-getCurrent :: String -> IO String
+       --Keyword -> [(id,date)]
+       getList :: a -> String -> IO [(Int, String)]
 
---Keyword -> (id,date)
-getList :: String -> IO (Int, String)
+       --Keyword -> id -> Full text
+       get :: a -> String -> Int -> IO String
 
---Keyword -> id -> Full Text
-get :: String -> Int -> IO String
+       --Keyword -> id -> ()
+       setCurrent :: a -> String -> Int -> IO ()
 
---Keyword -> id -> ()
-setCurrent :: String -> Int -> IO ()
+       --Keyword -> Full text -> id
+       addNew :: String -> String -> IO Int
 
---Keyword -> Full text -> id
-addNew :: String -> String -> IO Int
--}