X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcInstDcls.lhs;h=3272f968628da3fc5e8953186e3f154efca837ec;hb=58521c72cec262496dabf5fffb057d25ab17a0f7;hp=243539554647c6cbf57db1525bd917b535fc77b7;hpb=685f631451c4e6d8ebb6e31decb935db675f338e;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcInstDcls.lhs b/compiler/typecheck/TcInstDcls.lhs index 2435395..3272f96 100644 --- a/compiler/typecheck/TcInstDcls.lhs +++ b/compiler/typecheck/TcInstDcls.lhs @@ -29,7 +29,6 @@ import TcSimplify import Type import Coercion import TyCon -import TypeRep import DataCon import Class import Var @@ -860,7 +859,7 @@ tcInstanceMethod loc clas tyvars dfun_dicts theta inst_tys (Nothing, NoDefMeth) -> do -- No default method in the class { warn <- doptM Opt_WarnMissingMethods ; warnTc (warn -- Warn only if -fwarn-missing-methods - && reportIfUnused (getOccName sel_id)) + && not (startsWithUnderscore (getOccName sel_id))) -- Don't warn about _foo methods omitted_meth_warn ; return (error_rhs, emptyBag) }