Fix Trac #7804, about floating equalites
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Apr 2013 17:20:07 +0000 (18:20 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 3 Apr 2013 17:20:07 +0000 (18:20 +0100)
commitf3bfbd585afe178edb3d6afafceb116041eaafb6
treef95268dd174d1057a9e83604716ac937b0fe60ce
parent7501a2c3a181a53789e4f4462847295354042849
Fix Trac #7804, about floating equalites

We float unsolved equalities from underneath a 'forall', to
help solve them, in TcSimplify.floatEqualities.

It's regrettably delicate though,as this bug shows. I'm not
happy with the new code; but there are copious notes; see
Note [Float equalities from under a skolem binding].
compiler/typecheck/TcSimplify.lhs