[Xmonad] darcs patch: refactor main, add "recompile" to XMonad.Core

Devin Mullins me at twifkak.com
Sat Nov 10 19:31:16 EST 2007


On Fri, Nov 09, 2007 at 07:43:53AM -0800, David Roundy wrote:
> On Fri, Nov 09, 2007 at 12:10:24AM +0100, Lukas Mai wrote:
> > Fri Nov  9 00:09:33 CET 2007  Lukas Mai <l.mai at web.de>
> >   * refactor main, add "recompile" to XMonad.Core
> 
> > +    recompile
> >      dir <- fmap (++ "/.xmonad") getHomeDirectory
> 
> This refactoring leaves a bit of ugliness: this finding of the .xmonad
> directory appears twice in the code.  Any ideas how to make this prettier?

Naive answer:
getXMonadDirectory :: IO FilePath
recompile :: FilePath -> IO ()
?


More information about the xmonad mailing list