haskell-cmake-improvements: do not reinstall cabal use the system version
@@ -30,10 +30,12 @@ generateHaskellDependencies cabalFiles = do
let filteredPerFile = second (nub . filter (flip notElem exclusions . depPkgName) . generateDeps) <$> deps
putStr "cabal install "
putStrLn . unwords . map (wrap . show . disp) . nub . concatMap snd $ filteredPerFile
+ putStr " --avoid-reinstalls"
forM_ filteredPerFile $ \(f, d) -> do
putStrLn f
putStr "cabal install "
putStrLn . unwords . map (wrap . show . disp) $ d
+ putStr " --avoid-reinstalls"
where
generateDeps pd = let gpd = packageDescription pd
cl = generateBuildDeps <$> condLibrary pd
