Fix Trac #1988; keep the ru_fn field of a RULE up to date
authorsimonpj@microsoft.com <unknown>
Thu, 20 Dec 2007 13:19:12 +0000 (13:19 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 20 Dec 2007 13:19:12 +0000 (13:19 +0000)
commitca919ae01e81fb4afb2243bb34eceff56ca66043
tree35083cce16e89d0e35f35ea62bf60b9fb1d0f06f
parentc8b41f8571034a3178a28f6ecd3d37d741b09d6d
Fix Trac #1988; keep the ru_fn field of a RULE up to date

The ru_fn field was wrong when we moved RULES from one Id to another.
The fix is simple enough.

However, looking at this makes me realise that the worker/wrapper stuff
for recursive newtypes isn't very clever: we generate demand info but
then don't properly exploit it.

This patch fixes the crash though.
compiler/basicTypes/IdInfo.lhs
compiler/simplCore/SimplCore.lhs
compiler/simplCore/Simplify.lhs