summaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-14 14:12:17 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-14 14:12:17 +0000
commita7865fd10582a9b710e96d2052a9ce90ced8020c (patch)
tree00f7ce23717a4aca2352adb6346f5daa18411ec8 /Main.hs
parent3b090644f148acf856e925be59e6915ea524a3f8 (diff)
added environment
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@26 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Main.hs b/Main.hs
index 8be35cf..50e9f44 100644
--- a/Main.hs
+++ b/Main.hs
@@ -3,14 +3,15 @@ module Main where
import Conf
import IRC
import State
+import Env
main :: IO ()
main = do
let conf = makeConf
databaseFile <- get "databaseFile" conf
- let state = load databaseFile
+ let state = stateLoad databaseFile
state' <- state -- Extract State from the IO Monad
- ircConnect state' conf
+ ircConnect (Env state' conf)
-- Shortcut
r :: IO ()