projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4e5faff
)
Suggests -fglasgow-exts for contexts-differ-in-length error
author
simonpj@microsoft.com
<unknown>
Mon, 11 Dec 2006 16:05:17 +0000
(16:05 +0000)
committer
simonpj@microsoft.com
<unknown>
Mon, 11 Dec 2006 16:05:17 +0000
(16:05 +0000)
compiler/typecheck/TcUnify.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcUnify.lhs
b/compiler/typecheck/TcUnify.lhs
index
5fcaea6
..
169cf7b
100644
(file)
--- a/
compiler/typecheck/TcUnify.lhs
+++ b/
compiler/typecheck/TcUnify.lhs
@@
-841,7
+841,8
@@
unifyTheta :: TcThetaType -> TcThetaType -> TcM ()
-- Acutal and expected types
unifyTheta theta1 theta2
= do { checkTc (equalLength theta1 theta2)
-- Acutal and expected types
unifyTheta theta1 theta2
= do { checkTc (equalLength theta1 theta2)
- (ptext SLIT("Contexts differ in length"))
+ (vcat [ptext SLIT("Contexts differ in length"),
+ nest 2 $ parens $ ptext SLIT("Use -fglasgow-exts to allow this")])
; uList unifyPred theta1 theta2 }
---------------
; uList unifyPred theta1 theta2 }
---------------