Do not quantify over the function itself in a RULE
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 7 Apr 2015 13:01:39 +0000 (14:01 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 7 Apr 2015 14:10:37 +0000 (15:10 +0100)
commitcfb60421a43f23e75ead85d99cec207a156f9312
treed6dace38a82f43bbde1715b302185fbca9b4e0f4
parent74d2c33a1f4ebe3de090bc73d08910bbdd31f8f1
Do not quantify over the function itself in a RULE

We were erroneously quantifying over the function when it
had a dictionary type. A bit pathological, but possible.

This fixes Trac #10251
compiler/deSugar/DsBinds.hs
testsuite/tests/deSugar/should_compile/T10251.hs [new file with mode: 0644]
testsuite/tests/deSugar/should_compile/all.T