diff options
| author | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-03-14 14:59:11 +0000 |
|---|---|---|
| committer | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-03-14 14:59:11 +0000 |
| commit | 505b9940f6739dafd5a71fec8d7fdba4724d90ba (patch) | |
| tree | 25f6ada26275a667761f70e308098e5ea6665a5f /Env.hs | |
| parent | 17c092a07ad03bbb77bcf629463f78b5a49dc4cb (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.hs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
