[project @ 2001-11-19 16:33:17 by simonpj]
authorsimonpj <unknown>
Mon, 19 Nov 2001 16:33:17 +0000 (16:33 +0000)
committersimonpj <unknown>
Mon, 19 Nov 2001 16:33:17 +0000 (16:33 +0000)
Improve error msg

ghc/compiler/typecheck/TcMType.lhs

index d296057..e5201a9 100644 (file)
@@ -795,7 +795,7 @@ checkAmbiguity forall_tyvars theta tau
 ambigErr pred
   = sep [ptext SLIT("Ambiguous constraint") <+> quotes (pprPred pred),
         nest 4 (ptext SLIT("At least one of the forall'd type variables mentioned by the constraint") $$
-                ptext SLIT("must be reachable from the type after the =>"))]
+                ptext SLIT("must be reachable from the type after the '=>'"))]
 
 
 freeErr pred