diff options
author | Julien Dessaux | 2009-08-07 00:10:45 +0200 |
---|---|---|
committer | Julien Dessaux | 2009-08-07 00:10:45 +0200 |
commit | 2f270f8bdf0e5f226e9e54881ec71a2bde465b71 (patch) | |
tree | 7e127a649f508554ee36d036f5fae34028cd8dfa /Main.hs | |
parent | Added IRC connection and initialisation stuff. (diff) | |
download | hsbot-2f270f8bdf0e5f226e9e54881ec71a2bde465b71.tar.gz hsbot-2f270f8bdf0e5f226e9e54881ec71a2bde465b71.tar.bz2 hsbot-2f270f8bdf0e5f226e9e54881ec71a2bde465b71.zip |
Refactored some minor stuff
Diffstat (limited to '')
-rw-r--r-- | Main.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |