
On 12/21/07, Rafael Almeida
I'm using the current darcs version, but the following line seems wrong. With the change I made I can have the XMonad directory with extensions to xmonad right there on .xmonad. Before, there was just a -i parameter followed by another parameter. That seems wrong to me. Now ghc is called with -i. and everything seems to work fine. I hope I'm not missing something obvious here.
diff -rN -u old-xmonad/XMonad/Core.hs new-xmonad/XMonad/Core.hs --- old-xmonad/XMonad/Core.hs 2007-12-21 16:29:27.000000000 -0200 +++ new-xmonad/XMonad/Core.hs 2007-12-21 16:29:27.000000000 -0200 @@ -360,7 +360,7 @@ binT <- getModTime bin when (force || srcT > binT) $ do status <- bracket (openFile err WriteMode) hClose $ \h -> do - waitForProcess =<< runProcess "ghc" ["--make", "xmonad.hs", "-i", "-no-recomp", "-v0", "-o",binn] (Just dir) + waitForProcess =<< runProcess "ghc" ["--make", "xmonad.hs", "-i.", "-no-recomp", "-v0", "-o",binn] (Just dir) Nothing Nothing Nothing (Just h)
-- now, if it fails, run xmessage to let the user know:
I really shouldn't have paste that here, so the patch can be found at: www.dcc.ufmg.br/~rafaelc/core.patch Althought it's so simply you might as well just edit Core.hs and change it there already :P.