Gruesome fix in CorePrep to fix embarassing Trac #4121
authorsimonpj@microsoft.com <unknown>
Mon, 14 Jun 2010 13:27:26 +0000 (13:27 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 14 Jun 2010 13:27:26 +0000 (13:27 +0000)
commit31c7568b24ac63f0b60751a457eeb697dfffc11f
treed623cbee635b2e453b191ff1b6cade169d0a0408
parent919509ab0fa4b3e3d21e86c10aeb722ac1105a97
Gruesome fix in CorePrep to fix embarassing Trac #4121

This is a long-lurking bug that has been flushed into
the open by other arity-related changes.  There's a
long comment

     Note [CafInfo and floating]

to explain.

I really hate the contortions we have to do through to keep correct
CafRef information on top-level binders.  The Right Thing, I believe,
is to compute CAF and arity information later, and merge it into the
interface-file information when the latter is generated.

But for now, this hackily fixes the problem.
compiler/coreSyn/CorePrep.lhs