Don't do binder-swap for GlobalIds

Authored by simonpj on Feb 21 2019, 3:34 AM.

Description

Don't do binder-swap for GlobalIds

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 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 Trac #16296

(cherry picked from commit 0eb7cf03da3783ca887d5de44d312cf6f3a4113c)

Details

Committed
bgamariThu, Nov 7, 7:13 AM
Parents
rGHCefe714d65f5a: Parenthesize GADT return types in pprIfaceConDecl (#17384)
Branches
Unknown
Tags
Unknown