X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcTyClsDecls.lhs;h=bc20d3d8d9bc90b6245ec89ac8498d2880e0bf9f;hb=f670c47f9f93ffd6d06b331cd40554cd5e92484c;hp=049276d4c5a1f9f857de5c90e36a7c82ee4bf34c;hpb=5b49434484d86b2dfad682d5eb26ef7f3e2e2b56;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcTyClsDecls.lhs b/compiler/typecheck/TcTyClsDecls.lhs index 049276d..bc20d3d 100644 --- a/compiler/typecheck/TcTyClsDecls.lhs +++ b/compiler/typecheck/TcTyClsDecls.lhs @@ -37,7 +37,6 @@ import VarSet import Name import Outputable import Maybes -import Monad import Unify import Util import SrcLoc @@ -49,6 +48,7 @@ import Unique ( mkBuiltinUnique ) import BasicTypes import Bag +import Control.Monad import Data.List \end{code} @@ -1269,7 +1269,7 @@ mkRecSelBind (tycon, sel_name) || dataConCannotMatch inst_tys con) inst_tys = tyConAppArgs data_ty - unit_rhs = L loc $ ExplicitTuple [] Boxed + unit_rhs = mkLHsTupleExpr [] msg_lit = HsStringPrim $ mkFastString $ occNameString (getOccName sel_name)