On 2/24/06, Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: > Lemmih > > Can you summarise what you are trying to do here, and give an overview > of the changes you are making?
Sure. The 'RnName.rnImports' function renames the imports and creates a processed result in a single go. I wanted the unprocessed imports and therefore broke the function into two smaller parts; one for renaming the imports ([LImportDecl RdrName] -> RnM [LImportDecl Name]), and one for creating the GlobalRdrEnv and the ImportAvails. Moving the error handling around was a bit tricky. I did the same thing with 'RnName.rnExports'. Then I added two fields to TcGblEnv (next to 'tcg_rn_decl' which contains the renamed declarations) for holding the renamed export and export lists. Finally, I tweaked 'hscFileCheck' to return the renamed import/export lists together with the renamed bindings. -- Friendly, Lemmih _______________________________________________ Cvs-ghc mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-ghc
