summaryrefslogtreecommitdiff
path: root/HsBot
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-05-15 17:08:06 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-05-15 17:08:06 +0000
commit66b1cbb4385107a98591d6a45f1fe3713496f2b0 (patch)
tree2eb9c40f9038112506dbdc78ced87ffc4160de21 /HsBot
parentc7205f32eefb263da5f44ceecdd00c3d70411e3f (diff)
oups, forgot the definition of the CallbackFunction type
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@64 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'HsBot')
-rw-r--r--HsBot/Callbacks/Callback.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/HsBot/Callbacks/Callback.hs b/HsBot/Callbacks/Callback.hs
new file mode 100644
index 0000000..c92aa96
--- /dev/null
+++ b/HsBot/Callbacks/Callback.hs
@@ -0,0 +1,13 @@
+module HsBot.Callbacks.Callback where
+
+import HsBot.Base.Env
+import HsBot.Base.State
+
+type CallbackFunction = String -> SendMessage -> Env -> IO Env
+
+class Callback a where
+ cbRunPrio :: a -> Integer
+ cbRunPrio a = 0
+
+ cbRun :: a
+