Add quotes to error message
authorsimonpj@microsoft.com <unknown>
Tue, 30 Dec 2008 15:04:02 +0000 (15:04 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 30 Dec 2008 15:04:02 +0000 (15:04 +0000)
compiler/typecheck/TcInstDcls.lhs

index e7c472b..2b3e9c0 100644 (file)
@@ -963,7 +963,7 @@ mustBeVarArgErr ty =
 wrongATArgErr :: Type -> Type -> SDoc
 wrongATArgErr ty instTy =
   sep [ ptext (sLit "Type indexes must match class instance head")
-      , ptext (sLit "Found") <+> ppr ty <+> ptext (sLit "but expected") <+>
-         ppr instTy
+      , ptext (sLit "Found") <+> quotes (ppr ty)
+        <+> ptext (sLit "but expected") <+> quotes (ppr instTy)
       ]
 \end{code}