• simonpj@microsoft.com's avatar
    Fix Trac #1988; keep the ru_fn field of a RULE up to date · ca919ae0
    simonpj@microsoft.com authored
    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.
    ca919ae0
SimplCore.lhs 24.8 KB