) 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
--}