Improve error message (push to 6.6 branch)
authorsimonpj@microsoft.com <unknown>
Wed, 1 Nov 2006 12:37:27 +0000 (12:37 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 1 Nov 2006 12:37:27 +0000 (12:37 +0000)
compiler/typecheck/TcMType.lhs

index 4aef899..dd7b627 100644 (file)
@@ -1111,7 +1111,8 @@ checkValidInstance tyvars theta clas inst_tys
                  (instTypeErr (pprClassPred clas inst_tys) msg)
        }
   where
-    msg  = parens (ptext SLIT("the Coverage Condition fails for one of the functional dependencies"))
+    msg  = parens (vcat [ptext SLIT("the Coverage Condition fails for one of the functional dependencies;"),
+                        undecidableMsg])
 \end{code}
 
 Termination test: each assertion in the context satisfies