From 996df630f0c58d151cbe1300d62900e66ea8d40e Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 8 Apr 2002 19:28:39 +0000 Subject: [PATCH] [project @ 2002-04-08 19:28:39 by sof] renameExtCore: bring locally defined names into scope before closing up --- ghc/compiler/rename/Rename.lhs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ghc/compiler/rename/Rename.lhs b/ghc/compiler/rename/Rename.lhs index 0122c0e..f1c00dd 100644 --- a/ghc/compiler/rename/Rename.lhs +++ b/ghc/compiler/rename/Rename.lhs @@ -221,6 +221,13 @@ renameExtCore dflags hit hst pcs this_module rnSourceDecls emptyRdrEnv emptyAvailEnv emptyLocalFixityEnv InterfaceMode local_decls `thenRn` \ (rn_local_decls, source_fvs) -> + let + tycl_decls = [d | (TyClD d) <- rn_local_decls ] + local_names = foldl add emptyNameSet tycl_decls + add names decl = addListToNameSet names (map fst (tyClDeclSysNames decl ++ tyClDeclNames decl)) + in + recordLocalSlurps local_names `thenRn_` + closeDecls rn_local_decls source_fvs `thenRn` \ final_decls -> -- print everything qualified. let print_unqualified = const False in -- 1.7.10.4