Fix Trac #1654: propagate name changes into CoreRules
authorsimonpj@microsoft.com <unknown>
Thu, 8 Nov 2007 17:51:08 +0000 (17:51 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 8 Nov 2007 17:51:08 +0000 (17:51 +0000)
commit4c38417c48af875afa5afbc996fcb53004a50209
tree67fdb3753c79cfb4dbd7db57bc0797a40800a522
parent7b156c451f0e2fa87a1111a2ab8e4bd6d29e5a0f
Fix Trac #1654: propagate name changes into CoreRules

This patch is on the HEAD.  It fixes a nasty and long-standing bug
whereby we weren't substituting the ru_fn field of a CoreRule in
CoreSubst.substSpec, which ultimately led to a puzzling "nameModule"
error trying to put the rules in the interface file.
compiler/coreSyn/CoreSubst.lhs
compiler/simplCore/SimplEnv.lhs