Fix #10642.
authorRichard Eisenberg <eir@cis.upenn.edu>
Wed, 15 Jul 2015 13:50:57 +0000 (09:50 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Wed, 15 Jul 2015 16:03:16 +0000 (12:03 -0400)
commit9f978b67212a51fa34ef44db463351b959ff15e4
tree15445b02d8c3a096b60630d8e3a3197c1a46c23f
parent75fd5dc204fb6bb9014f6bba4d680facbc952faf
Fix #10642.

Representational equalities cannot discharge nominal ones.
Even if, somehow, this didn't cause a type error (as reported
in the ticket), it would surely cause a core lint error.
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcSMonad.hs
testsuite/tests/typecheck/should_compile/T10642.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T