summaryrefslogtreecommitdiff
path: root/HsBot/Cmd.hs
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-28 11:09:30 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-28 11:09:30 +0000
commit80ff91aa5d6cda6adc1c97dc39b950dd7daed9d5 (patch)
tree4b1ad4310067e9ee9b5dcbae027844ed596e015f /HsBot/Cmd.hs
parent7a7302c5b86e89f3fc2fbc3476db731dfd6ed11b (diff)
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@50 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'HsBot/Cmd.hs')
-rw-r--r--HsBot/Cmd.hs16
1 files changed, 0 insertions, 16 deletions
diff --git a/HsBot/Cmd.hs b/HsBot/Cmd.hs
deleted file mode 100644
index 7de643e..0000000
--- a/HsBot/Cmd.hs
+++ /dev/null
@@ -1,16 +0,0 @@
-module HsBot.Cmd where
-
-import HsBot.State
-
-data Cmd = Cmd String String (State -> IO ())
-
-instance Show Cmd where
- show (Cmd a b _) = a ++ " - " ++ b
-
-cmdGet :: String -> [Cmd] -> Maybe Cmd
-cmdGet x commands =
- let command = [ (Cmd a b c) | (Cmd a b c) <- commands, a == x ]
- in if length command == 0
- then Nothing
- else Just (head command)
-