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:
219f900
)
When complaining about non-rigid context, give suggestion of adding a signature
author
simonpj@microsoft.com
<unknown>
Mon, 24 Dec 2007 12:22:17 +0000
(12:22 +0000)
committer
simonpj@microsoft.com
<unknown>
Mon, 24 Dec 2007 12:22:17 +0000
(12:22 +0000)
compiler/typecheck/TcPat.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcPat.lhs
b/compiler/typecheck/TcPat.lhs
index
0d62b6b
..
f9e7127
100644
(file)
--- a/
compiler/typecheck/TcPat.lhs
+++ b/
compiler/typecheck/TcPat.lhs
@@
-1107,11
+1107,11
@@
lazyPatErr pat tvs
nonRigidMatch con
= hang (ptext SLIT("GADT pattern match in non-rigid context for") <+> quotes (ppr con))
nonRigidMatch con
= hang (ptext SLIT("GADT pattern match in non-rigid context for") <+> quotes (ppr con))
- 2 (ptext SLIT("Tell GHC HQ if you'd like this to unify the context"))
+ 2 (ptext SLIT("Solution: add a type signature"))
nonRigidResult res_ty
= hang (ptext SLIT("GADT pattern match with non-rigid result type") <+> quotes (ppr res_ty))
nonRigidResult res_ty
= hang (ptext SLIT("GADT pattern match with non-rigid result type") <+> quotes (ppr res_ty))
- 2 (ptext SLIT("Tell GHC HQ if you'd like this to unify the context"))
+ 2 (ptext SLIT("Solution: add a type signature"))
inaccessibleAlt msg
= hang (ptext SLIT("Inaccessible case alternative:")) 2 msg
inaccessibleAlt msg
= hang (ptext SLIT("Inaccessible case alternative:")) 2 msg