init mg_inst_env when reading ext core
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>
Fri, 13 Jul 2007 07:37:29 +0000 (07:37 +0000)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Fri, 13 Jul 2007 07:37:29 +0000 (07:37 +0000)
compiler/typecheck/TcRnDriver.lhs

index 8659401..e5f945c 100644 (file)
@@ -314,6 +314,7 @@ tcRnExtCore hsc_env (HsExtCore this_mod decls src_binds)
                                mg_types     = final_type_env,
                                mg_insts     = tcg_insts tcg_env,
                                mg_fam_insts = tcg_fam_insts tcg_env,
+                               mg_inst_env  = tcg_inst_env tcg_env,
                                mg_fam_inst_env = tcg_fam_inst_env tcg_env,
                                mg_rules     = [],
                                mg_binds     = core_binds,