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

From HaskellWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
#!/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