summaryrefslogtreecommitdiff
path: root/Env.hs
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-14 14:59:11 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-14 14:59:11 +0000
commit505b9940f6739dafd5a71fec8d7fdba4724d90ba (patch)
tree25f6ada26275a667761f70e308098e5ea6665a5f /Env.hs
parent17c092a07ad03bbb77bcf629463f78b5a49dc4cb (diff)
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@28 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'Env.hs')
-rw-r--r--Env.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Env.hs b/Env.hs
index 5c47815..29963b3 100644
--- a/Env.hs
+++ b/Env.hs
@@ -3,11 +3,12 @@ module Env where
import Conf
import State
-data Env = Env State Conf
+type Dispatch = String -> (String -> IO ()) -> Env -> IO ()
+data Env = Env State Conf Dispatch
envGetInt :: String -> Env -> Int
-envGetInt key (Env _ conf) = getUnwrappedInt key conf
+envGetInt key (Env _ conf _) = getUnwrappedInt key conf
envGet :: String -> Env -> String
-envGet key (Env _ conf) = getUnwrapped key conf
+envGet key (Env _ conf _) = getUnwrapped key conf