Cleanup and some fixes

This commit is contained in:
Daniel Gröber
2015-03-28 02:33:42 +01:00
parent 2a02742f9e
commit 80d91776c5
12 changed files with 94 additions and 52 deletions

View File

@@ -29,9 +29,8 @@ main = do
genGhcPkgCache `mapM_` pkgDirs
let caches = [ "setup-config"
, "setup-config.ghc-mod.cabal-ghc-options"
, "setup-config.ghc-mod.cabal-helper.ghc-options"
, "setup-config.ghc-mod.cabal-helper"
, "setup-config.ghc-mod.resolved-components"
, "ghc-mod.cache"
]
cachesFindExp :: String
@@ -39,10 +38,9 @@ main = do
cleanCmd = "find test \\( "++ cachesFindExp ++" \\) -exec rm {} \\;"
print cleanCmd
putStrLn $ "$ " ++ cleanCmd
void $ system cleanCmd
void $ system "cabal --version"
putStrLn $ "ghc-mod was built with Cabal version " ++ VERSION_Cabal
void $ system "ghc --version"
(putStrLn =<< runD debugInfo)