[project @ 2004-10-20 13:34:04 by simonpj]
authorsimonpj <unknown>
Wed, 20 Oct 2004 13:34:27 +0000 (13:34 +0000)
committersimonpj <unknown>
Wed, 20 Oct 2004 13:34:27 +0000 (13:34 +0000)
commitf4c9d2b23bd63b48566e0ca3b13c8bdfc4cd0c0b
tree5846dd1900d943e153e0b494a315112ced4c9707
parentca23a0493febcc04f6f2fda5a221ad7350ad8bec
[project @ 2004-10-20 13:34:04 by simonpj]
---------------------------------
Fix a bug in usage recording
---------------------------------

As a result of the new stuff on hi-boot-file consistency checking, I
accidentally caused Foo.hi to record a usage line for module Foo, and
this in turn caused rather nasty bad things to happen.  In particular,
there were occasional crashes of form

ghc-6.3: panic! (the `impossible' happened, GHC version 6.3.20041017):
        forkM Constructor Var.TcTyVar{d r1B9}

At least I think that's why the crash happened.

Anyway, it was certainly a bug, and this commit fixes it.  The main
payload of this fix is in Desugar.lhs;  the rest is comments and
tidying.
ghc/compiler/deSugar/Desugar.lhs
ghc/compiler/iface/LoadIface.lhs
ghc/compiler/iface/MkIface.lhs
ghc/compiler/rename/RnNames.lhs
ghc/compiler/rename/RnSource.lhs
ghc/compiler/typecheck/TcRnDriver.lhs