diff options
| author | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-03-14 12:41:48 +0000 |
|---|---|---|
| committer | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-03-14 12:41:48 +0000 |
| commit | 1c16624f000070eb996b001cb9bf5a5bce18a7d8 (patch) | |
| tree | 064781dec938cacfa625c1bdc17883b27d995ffe /Main.hs | |
| parent | d102f483205bf2969ddf60063ba2b03c0c2b508a (diff) | |
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@24 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'Main.hs')
| -rw-r--r-- | Main.hs | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,13 +1,18 @@ module Main where -import HsBot import Conf +import IRC +import State main :: IO () main = do - let conf = load - conf' <- conf -- Extract Conf from the IO Monad - ircConnect conf' makeConf + let conf = makeConf + databaseFile <- get "databaseFile" conf + let state = load databaseFile + state' <- state -- Extract State from the IO Monad + ircConnect state' conf +-- Shortcut +r :: IO () r = main |
