• Simon Peyton Jones's avatar
    Don't do binder-swap for GlobalIds · dc9aa75e
    Simon Peyton Jones authored
    This patch disables the binder-swap transformation in the
    (relatively rare) case when the scrutinee is a GlobalId.
    Reason: we are getting Lint errors so that GHC doesn't
    even validate.  Trac #16346.
    
    This is NOT the final solution -- it's just a stop-gap
    to get us running again.
    
    The final solution is in Trac #16296
    
    (cherry picked from commit 0eb7cf03)
    dc9aa75e
OccurAnal.hs 114 KB