[xmonad] Patch to the current darcs version

Rafael Almeida almeidaraf at gmail.com
Sat Dec 22 03:08:44 EST 2007


On 12/22/07, Spencer Janssen <sjanssen at cse.unl.edu> wrote:
> On Friday 21 December 2007 12:30:13 Rafael Almeida wrote:
> > 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:
>
> This is intentional, case insensitive filesystems become confused with the
> file "xmonad.hs" and the module XMonad.  Additionally, we restrict the include
> path because our recompilation checker only checks xmonad.hs.
>

Right, but then how would I use new extensions together with
xmonad.hs? I tried using different directory (I called it Extension)
but it didn't work either. I even tried placing Actions/FloatKeys.hs
inside XMonad directory on the project's root directory and it didn't
work either.

Also, shouldn't "-no-recomp" be enough for recompilation checker? It
doesn't seem to recompile anything when I hit alt+q after already
compiling xmonad.hs and I'm running a slow computer.


More information about the xmonad mailing list