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:
7102e89
)
[project @ 2003-01-23 14:50:53 by simonpj]
author
simonpj
<unknown>
Thu, 23 Jan 2003 14:50:53 +0000
(14:50 +0000)
committer
simonpj
<unknown>
Thu, 23 Jan 2003 14:50:53 +0000
(14:50 +0000)
Improve error message again
ghc/compiler/typecheck/TcSimplify.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/typecheck/TcSimplify.lhs
b/ghc/compiler/typecheck/TcSimplify.lhs
index
a888621
..
90fcb9c
100644
(file)
--- a/
ghc/compiler/typecheck/TcSimplify.lhs
+++ b/
ghc/compiler/typecheck/TcSimplify.lhs
@@
-1990,7
+1990,8
@@
mkMonomorphismMsg tidy_env insts
-- f x = show (read "foo")
-- whre monomorphism doesn't play any role
mk_msg docs = vcat [ptext SLIT("Possible cause: the monomorphism restriction applied to the following:"),
- nest 2 (vcat docs)]
+ nest 2 (vcat docs),
+ ptext SLIT("Probable fix: give these definition(s) an explicit type signature")]
warnDefault dicts default_ty
= doptM Opt_WarnTypeDefaults `thenM` \ warn_flag ->