Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
20ed2d1d
Commit
20ed2d1d
authored
Jan 19, 2015
by
Andrey Mokhov
Browse files
Clean up.
parent
82901986
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Package/Compile.hs
View file @
20ed2d1d
...
...
@@ -49,9 +49,7 @@ compileHaskell pkg @ (Package _ path _) todo @ (stage, dist, _) obj way = do
let
buildDir
=
unifyPath
$
path
</>
dist
</>
"build"
-- TODO: keep only vanilla dependencies in 'haskell.deps'
deps
<-
args
$
DependencyList
(
buildDir
</>
"haskell.deps"
)
obj
let
(
srcs
,
his
)
=
partition
(
"//*hs"
?==
)
deps
objs
=
map
(
-<.>
osuf
way
)
his
-- Need *.o files instead of *.hi files to avoid recursive rules
let
srcs
=
filter
(
"//*hs"
?==
)
deps
need
deps
run
(
Ghc
stage
)
$
ghcArgs
pkg
todo
way
srcs
obj
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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