Don't quantify over Refl in a RULE
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 20 Jun 2016 14:48:09 +0000 (15:48 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 21 Jun 2016 13:52:56 +0000 (14:52 +0100)
commitd09e982c534b20908064f36d701a1a3a6a2eb55a
tree5e4903b63b77bbf2547be0b8d96ab50fda9616ce
parent7301404dfd317684418890799a587c7c684ddb63
Don't quantify over Refl in a RULE

This fixes Trac #12212.  It's quite hard to provoke, but I've
added a standalone test case that does so.

The issue is explained in Note [Evidence foralls] in Specialise.
compiler/specialise/Specialise.hs
testsuite/tests/simplCore/should_compile/T12212.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/T7785.stderr
testsuite/tests/simplCore/should_compile/all.T