[project @ 2004-04-02 13:19:28 by simonpj]
authorsimonpj <unknown>
Fri, 2 Apr 2004 13:19:28 +0000 (13:19 +0000)
committersimonpj <unknown>
Fri, 2 Apr 2004 13:19:28 +0000 (13:19 +0000)
commitfb30abb2778cc0f3b07581b32d9cba0104937fa5
treeb9aeb17316603652a33816aa594dbd2355ce8c35
parent2a0ee8e52378ff3d9b90afdeae24df376e299a1c
[project @ 2004-04-02 13:19:28 by simonpj]
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.
ghc/compiler/iface/BinIface.hs
ghc/compiler/iface/IfaceSyn.lhs
ghc/compiler/iface/LoadIface.lhs
ghc/compiler/iface/TcIface.lhs