[Xmonad] Config.hs: version Config.hs.template instead?
Donald Bruce Stewart
dons at cse.unsw.edu.au
Mon May 28 23:27:15 EDT 2007
wagnerd:
> Donald Bruce Stewart wrote:
> >glasser:
> >>Can we delete Config.hs from the repository and version a
> >>Config.hs.template instead? (Part of the build process could be to
> >
> >Integrating this with Cabal would be the main problem.
>
> Could the integration be as simple as changing Setup.lhs to read
> something like the one below?
> ~d
>
> #!/usr/bin/env runhaskell
> > import System.Directory
> > import Control.Monad
> > import Distribution.Simple
> > makeCopy = copyFile "Config.hs.template" "Config.hs"
> > main = doesFileExist "Config.hs" >>= flip when makeCopy >> defaultMain
Oh, this is a nice idea (I think). We'll look at this after the release.
-- Don
More information about the Xmonad
mailing list