Commit 1e5c0952 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Optimise buildPackageDependencies rule.

parent 7c45e18e
......@@ -22,5 +22,7 @@ buildPackageDependencies (Package name path _) (stage, dist, settings) =
-- TODO: i) is this needed? ii) shall we run GHC -M multiple times?
-- <> wayHcOpts vanilla
-- Avoid rebuilding dependecies of out if it hasn't changed:
copyFileChanged (out <.> "new") out
-- Note: cannot use copyFileChanged as it depends on the source file
deps <- liftIO $ readFile $ out <.> "new"
writeFileChanged out deps
removeFilesAfter "." [out <.> "new"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment