From: simonpj Date: Thu, 20 Feb 2003 13:17:02 +0000 (+0000) Subject: [project @ 2003-02-20 13:17:02 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1132 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f6176af636474f38e976dabdc8b86cbb169d99cf;p=ghc-hetmet.git [project @ 2003-02-20 13:17:02 by simonpj] Comments only --- diff --git a/ghc/compiler/typecheck/TcClassDcl.lhs b/ghc/compiler/typecheck/TcClassDcl.lhs index 2149943..8174eb7 100644 --- a/ghc/compiler/typecheck/TcClassDcl.lhs +++ b/ghc/compiler/typecheck/TcClassDcl.lhs @@ -122,7 +122,7 @@ tcClassDecl1 (ClassDecl {tcdCtxt = context, tcdName = class_name, in tcExtendTyVarEnv tyvars $ - checkDefaultBinds clas op_names def_methods `thenM` \ mb_dm_env -> + checkDefaultBinds clas op_names def_methods `thenM` \ mb_dm_env -> -- CHECK THE CONTEXT -- The renamer has already checked that the context mentions @@ -150,9 +150,6 @@ tcClassDecl1 (ClassDecl {tcdCtxt = context, tcdName = class_name, sc_tys = mkPredTys sc_theta dict_component_tys = sc_tys ++ op_tys sc_sel_ids = [mkDictSelId sc_name clas | sc_name <- sc_sel_names] - -- Slightly curiously, the dictionary selectors are treated as RecordSelectorIds, - -- so they are treated as implicit Ids, but we don't give labelled fields to - -- the data constructors in tcMkDataCon datacon_name [{- No strictness -}]