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:
087fc5a
)
small improvement to an error message
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 11 Jul 2008 12:01:53 +0000
(12:01 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 11 Jul 2008 12:01:53 +0000
(12:01 +0000)
compiler/main/GHC.hs
patch
|
blob
|
history
diff --git
a/compiler/main/GHC.hs
b/compiler/main/GHC.hs
index
3f68224
..
5626d24
100644
(file)
--- a/
compiler/main/GHC.hs
+++ b/
compiler/main/GHC.hs
@@
-2235,7
+2235,7
@@
findModule s mod_name maybe_pkg = withSession s $ \hsc_env ->
case res of
Found _ m | modulePackageId m /= this_pkg -> return m
| otherwise -> throwDyn (CmdLineError (showSDoc $
- text "module" <+> pprModule m <+>
+ text "module" <+> quotes (ppr (moduleName m)) <+>
text "is not loaded"))
err -> let msg = cannotFindModule dflags mod_name err in
throwDyn (CmdLineError (showSDoc msg))