projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08b5047
)
ghc -M: need to add a dep on Prelude unless -fno-implicit-prelude is on
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 28 Nov 2008 16:57:07 +0000
(16:57 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 28 Nov 2008 16:57:07 +0000
(16:57 +0000)
compiler/main/DriverMkDepend.hs
patch
|
blob
|
history
diff --git
a/compiler/main/DriverMkDepend.hs
b/compiler/main/DriverMkDepend.hs
index
5cf8e64
..
5b63392
100644
(file)
--- a/
compiler/main/DriverMkDepend.hs
+++ b/
compiler/main/DriverMkDepend.hs
@@
-17,6
+17,7
@@
module DriverMkDepend (
import qualified GHC
import GHC ( ModSummary(..), GhcMonad )
+import PrelNames
import DynFlags
import Util
import HscTypes ( HscEnv, IsBootInterface, msObjFilePath, msHsFilePath, getSession )
@@
-213,6
+214,9
@@
processDeps dflags hsc_env excl_mods hdl (AcyclicSCC node)
-- regular imports
; mapM_ (do_imp False)
(filter (`notElem` excl_mods) (map unLoc (ms_imps node)))
+
+ ; when (dopt Opt_ImplicitPrelude (ms_hspp_opts node)) $
+ do_imp False pRELUDE_NAME
}