The ru_local field of a CoreRule is False for implicit Ids
authorsimonpj@microsoft.com <unknown>
Fri, 30 Mar 2007 14:43:44 +0000 (14:43 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 30 Mar 2007 14:43:44 +0000 (14:43 +0000)
commitec81fddea750b1ad21f63b7c4307c15f89f10dfd
tree5dede74a87052ee08f5762f6ae5d26bd7c117c16
parent206b752961b48dcf8943632572b0a4f9c8a0fccc
The ru_local field of a CoreRule is False for implicit Ids

MERGE to 6.6.1

For class-ops, record selectors, data constructors, we want the ru_local
field of the Rule to be False.  We do not attach the rule to the binding
for the Id, because there simply isn't a binding until the code gen stage.

(NB: the ru_local field is different to the orphan-hood of the rule.)

This fixes a bug that meant that RULES on class ops were never exported.
compiler/coreSyn/CoreSyn.lhs
compiler/deSugar/Desugar.lhs
compiler/iface/TcIface.lhs