summaryrefslogtreecommitdiffstats
path: root/XMonad/Core.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-11-19 04:04:36 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-11-19 04:04:36 +0100
commit6bf224c0b491ad8119dccc1a53ce878f083ce069 (patch)
tree193d95c5f3e0debfb3eed407fb74b731deb27185 /XMonad/Core.hs
parentd453a0add31502345c84d42defbc81d1f98c0e82 (diff)
downloadmetatile-6bf224c0b491ad8119dccc1a53ce878f083ce069.tar
metatile-6bf224c0b491ad8119dccc1a53ce878f083ce069.zip
Generalize recompile to MonadIO
darcs-hash:20071119030436-a5988-28b43f2f3c50476d5eda3c03196fc238c1427302
Diffstat (limited to 'XMonad/Core.hs')
-rw-r--r--XMonad/Core.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/XMonad/Core.hs b/XMonad/Core.hs
index e873848..27ef4f2 100644
--- a/XMonad/Core.hs
+++ b/XMonad/Core.hs
@@ -308,8 +308,8 @@ restart mprog resume = do
-- status, any stderr produced by GHC, written to the file xmonad.errors,
-- will be displayed to the user with xmessage
--
-recompile :: IO ()
-recompile = do
+recompile :: MonadIO m => m ()
+recompile = liftIO $ do
dir <- liftM (++ "/.xmonad") getHomeDirectory
let bin = dir ++ "/" ++ "xmonad"
err = bin ++ ".errors"