cvs commit: fptools/ghc/compiler/iface BinIface.hs IfaceSyn.lhs LoadIface.lhs TcIface.lhs

Simon Peyton Jones simonpj at glass.cse.ogi.edu
Fri Apr 2 05:19:29 EST 2004


simonpj     2004/04/02 05:19:29 PST

  Modified files:
    ghc/compiler/iface   BinIface.hs IfaceSyn.lhs LoadIface.lhs 
                         TcIface.lhs 
  Log:
  Get rid of DiscardedInfo, and fix a Ghci bug at the same time.
  
  The new story is this:
  
  - We always read the whole interface file, as it exists on disk,
    not dropping pragmas or anything.
  
  - We compare that from-the-disk copy with the new version before
    writing the new interface file.
  
  - We drop the pragmas
    a) Before loading the interface payload into the declaration pools
    b) In the no-need-to-recompile case, before typechecking the
  	interface decls.  Omitting this was the previous bug.
  
  Revision  Changes    Path
  1.5       +0 -1      fptools/ghc/compiler/iface/BinIface.hs
  1.6       +10 -20    fptools/ghc/compiler/iface/IfaceSyn.lhs
  1.11      +21 -20    fptools/ghc/compiler/iface/LoadIface.lhs
  1.19      +22 -13    fptools/ghc/compiler/iface/TcIface.lhs


More information about the Cvs-ghc mailing list