Xmonad/Config archive/adamvo's xmonad-recomp.lhs

From HaskellWiki
< Xmonad‎ | Config archive
Revision as of 00:19, 4 May 2009 by Avo (talk | contribs) (add xmonad-recomp.lhs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#!/usr/bin/env runhaskell

This is used to recompile xmonad only when ~/.xmonad/xmonad.hs has been changed since the last recompile: xmonad --recompile forces a recompile regardless.

Place this script somewhere in your path, and chmod +x

> import XMonad
> import System.Exit
> import Control.Monad

> main = recompile False >>= flip unless exitFailure