Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
65a95d52
Commit
65a95d52
authored
May 05, 2005
by
simonpj
Browse files
[project @ 2005-05-05 12:39:19 by simonpj]
Only compare hi-boot iface with mother module if there *is* an hi-boot iface
parent
eacd9d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/iface/TcIface.lhs
View file @
65a95d52
...
...
@@ -237,10 +237,19 @@ tcHiBootIface mod
; if not (isOneShot mode)
-- In --make and interactive mode, if this module has an hs-boot file
-- we'll have compiled it already, and it'll be in the HPT
--
-- We check wheher the interface is a *boot* interface.
-- It can happen (when using GHC from Visual Studio) that we
-- compile a module in TypecheckOnly mode, with a stable,
-- fully-populated HPT. In that case the boot interface isn't there
-- (it's been replaced by the mother module) so we can't check it.
-- And that's fine, because if M's ModInfo is in the HPT, then
-- it's been compiled once, and we don't need to check the boot iface
then do { hpt <- getHpt
; case lookupModuleEnv hpt mod of
Just info -> return (hm_details info)
Nothing -> return emptyModDetails }
Just info | mi_boot (hm_iface info)
-> return (hm_details info)
other -> return emptyModDetails }
else do
-- OK, so we're in one-shot mode.
...
...
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