[project @ 2001-02-27 11:50:05 by simonpj]
authorsimonpj <unknown>
Tue, 27 Feb 2001 11:50:05 +0000 (11:50 +0000)
committersimonpj <unknown>
Tue, 27 Feb 2001 11:50:05 +0000 (11:50 +0000)
commit82f63df94dafed10f51f158ab531d52da97c2c86
tree4d95403b7a83e77d343361d89d61b38ca6aa9c83
parent2140976ebb4909e86aa397b983bacb47182de5aa
[project @ 2001-02-27 11:50:05 by simonpj]
Temporary fix for a nasty black hole

The problem is that the type checker has a big knot for "unf_env".
This means that we can't look at unfoldings inside the loop, which
is fair enough.  But setting an unfolding in the IdInfo is strict
in the unfolding, so we can't look at the IdInfo either.

But isLocalId looks at the IdInfo, and it was being used in an
assert in TcHsSyn, and in setting the in_scope_vars in TcIfaceSig.

I think the right solution is to take the "flavour" out of IdInfo,
and put it into VarDetails, but I've done a quick fix for now.
(Remove the assert, and use a different way in TcIfaceSig.)
ghc/compiler/simplCore/SimplCore.lhs
ghc/compiler/typecheck/TcHsSyn.lhs
ghc/compiler/typecheck/TcIfaceSig.lhs
ghc/compiler/typecheck/TcModule.lhs
ghc/compiler/typecheck/TcRules.lhs