X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcEnv.lhs;h=330e73b8a23efea76c33a975d0c2ff57aa02fba5;hb=refs%2Ftags%2FBefore_type_family_merge;hp=28a8758990f3f2a344f7ef08535e5847fa71c687;hpb=800dba35d6ad4dde3d54a293687307f160a05dea;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcEnv.lhs b/compiler/typecheck/TcEnv.lhs index 28a8758..330e73b 100644 --- a/compiler/typecheck/TcEnv.lhs +++ b/compiler/typecheck/TcEnv.lhs @@ -707,7 +707,7 @@ wrongThingErr expected thing name ptext SLIT("used as a") <+> text expected) famInstNotFound tycon tys what - = failWithTc (msg <+> quotes (pprTypeApp (ppr tycon) tys)) + = failWithTc (msg <+> quotes (pprTypeApp tycon (ppr tycon) tys)) where msg = ptext $ if length what > 1 then SLIT("More than one family instance for")