summaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorJulien Dessaux2009-08-07 00:10:45 +0200
committerJulien Dessaux2009-08-07 00:10:45 +0200
commit2f270f8bdf0e5f226e9e54881ec71a2bde465b71 (patch)
tree7e127a649f508554ee36d036f5fae34028cd8dfa /Main.hs
parentAdded IRC connection and initialisation stuff. (diff)
downloadhsbot-2f270f8bdf0e5f226e9e54881ec71a2bde465b71.tar.gz
hsbot-2f270f8bdf0e5f226e9e54881ec71a2bde465b71.tar.bz2
hsbot-2f270f8bdf0e5f226e9e54881ec71a2bde465b71.zip
Refactored some minor stuff
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Main.hs b/Main.hs
index 0a72e62..87f7588 100644
--- a/Main.hs
+++ b/Main.hs
@@ -25,16 +25,16 @@ main = do
-- | Dynamic rebooting function
reboot :: Module -> a -> IO ()
-reboot modul' st = do
+reboot modul' state = do
mkstat <- makeAll "Hsbot.hs" [] --ghcargs
case mkstat of
MakeSuccess _ _ -> do
unloadAll modul'
ldstat <- load_ "Hsbot/Main.o" [".","Hsbot","Hsbot/Plugins"] "imain'"
case ldstat of
- LoadSuccess v imain' -> do
+ LoadSuccess modul'' imain' -> do
putStrLn "REBOOT: Successful recompilation & reloading, rebooting..."
- imain' v reboot st
+ imain' modul'' reboot state
LoadFailure e -> fatality e
MakeFailure e -> fatality e
where