X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Frename%2FRnTypes.lhs;h=055cd349ad77a701672a6832c56467d78c1f5bc6;hp=e209036e5eb1d1878f822988273cc4c366d57a9e;hb=afef39736dcde6f4947a6f362f9e6b3586933db4;hpb=cbc86d748d5f7b5ad5503c9e87c0b5c0402f27bc diff --git a/compiler/rename/RnTypes.lhs b/compiler/rename/RnTypes.lhs index e209036..055cd34 100644 --- a/compiler/rename/RnTypes.lhs +++ b/compiler/rename/RnTypes.lhs @@ -752,12 +752,10 @@ checkTupSize tup_size forAllWarn doc ty (L loc tyvar) = ifOptM Opt_WarnUnusedMatches $ - setSrcSpan loc $ - addWarn (sep [ptext SLIT("The universally quantified type variable") <+> quotes (ppr tyvar), - nest 4 (ptext SLIT("does not appear in the type") <+> quotes (ppr ty))] + addWarnAt loc (sep [ptext SLIT("The universally quantified type variable") <+> quotes (ppr tyvar), + nest 4 (ptext SLIT("does not appear in the type") <+> quotes (ppr ty))] $$ - doc - ) + doc) bogusCharError c = ptext SLIT("character literal out of range: '\\") <> char c <> char '\''