X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcEnv.lhs;h=ff49db6af6b04448f5a032cbb551f2d397b58b4a;hb=c8a127499b885a7547825fffc21fe8bbcad2bf97;hp=097253023ec87834af6660fd8dd37730d0a6bf19;hpb=3548802de235eca280982270463db84910ee3748;p=ghc-hetmet.git 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")