cvs commit: fptools/ghc/compiler/typecheck TcInstDcls.lhs TcModule.lhs fptools/ghc/compiler/hsSyn HsDecls.lhs

Simon Peyton Jones simonpj@glass.cse.ogi.edu
Mon, 26 Nov 2001 02:27:00 -0800


simonpj     2001/11/26 02:27:00 PST

  Modified files:
    ghc/compiler/typecheck TcInstDcls.lhs TcModule.lhs 
    ghc/compiler/hsSyn   HsDecls.lhs 
  Log:
  	--------------------------------------
  	Finally get rid of tcAddImportedIdInfo
  	--------------------------------------
  
  TcEnv.tcAddImportedIdInfo is a notorious source of space leaks.
  Simon M got rid of the need for it on default methods.
  This commit gets rid of the need for it for dictionary function Ids,
  and finally nukes the beast altogether. Hurrah!
  
  The change really involves putting tcInterfaceSigs *before*
  tcInstDecls1, so that any imported DFunIds are in the typechecker's
  environment before we get to tcInstDecls.
  
  Revision  Changes    Path
  1.133     +18 -17    fptools/ghc/compiler/typecheck/TcInstDcls.lhs
  1.128     +13 -12    fptools/ghc/compiler/typecheck/TcModule.lhs
  1.82      +5 -2      fptools/ghc/compiler/hsSyn/HsDecls.lhs