Skip to content
  • Simon Peyton Jones's avatar
    The ru_local field of a CoreRule is False for implicit Ids · ec81fdde
    Simon Peyton Jones authored
    	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.
    ec81fdde