Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1e5c0952
Commit
1e5c0952
authored
Jan 13, 2015
by
Andrey Mokhov
Browse files
Optimise buildPackageDependencies rule.
parent
7c45e18e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Package/Dependencies.hs
View file @
1e5c0952
...
...
@@ -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"
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment