X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcEnv.lhs;h=ff49db6af6b04448f5a032cbb551f2d397b58b4a;hp=097253023ec87834af6660fd8dd37730d0a6bf19;hb=cd290fc88d35d5a32c994664baa56a5eae250e9e;hpb=604afcb5b9c06bee56d3a89f5d0bcdb793bbfb10 diff --git a/compiler/typecheck/TcEnv.lhs b/compiler/typecheck/TcEnv.lhs index 0972530..ff49db6 100644 --- a/compiler/typecheck/TcEnv.lhs +++ b/compiler/typecheck/TcEnv.lhs @@ -686,7 +686,7 @@ wrongThingErr expected thing name ptext SLIT("used as a") <+> text expected) famInstNotFound tycon tys what - = failWithTc (msg <+> quotes (ppr tycon <+> hsep (map pprParendType tys))) + = failWithTc (msg <+> quotes (pprTypeApp (ppr tycon) tys)) where msg = ptext $ if length what > 1 then SLIT("More than one family instance for")