X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcClassDcl.lhs;h=04a9f2b2635c58f68a52aebac6ff150f1a441f95;hb=7bb3d1fc79521d591cd9f824893963141a7997b6;hp=3814f239b68f23086018dc3df42e3cf6e8b521a4;hpb=e79c9ce01d0ce4412bd4bcd99c8c728a6a2ec569;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcClassDcl.lhs b/compiler/typecheck/TcClassDcl.lhs index 3814f23..04a9f2b 100644 --- a/compiler/typecheck/TcClassDcl.lhs +++ b/compiler/typecheck/TcClassDcl.lhs @@ -30,21 +30,18 @@ import TcRnMonad import Generics import Class import TyCon -import Type import MkId import Id import Name import Var import NameEnv import NameSet -import OccName import RdrName import Outputable import PrelNames import DynFlags import ErrUtils import Util -import Unique import ListSetOps import SrcLoc import Maybes @@ -452,7 +449,7 @@ get_generics decl@(ClassDecl {tcdLName = class_name, tcdMeths = def_methods}) group `lengthExceeds` 1] get_uniq (tc,_) = getUnique tc - mapM (addErrTc . dupGenericInsts) bad_groups + mapM_ (addErrTc . dupGenericInsts) bad_groups -- Check that there is an InstInfo for each generic type constructor let