Fix roles merging to apply only to non-rep-injective types.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 1 Mar 2017 07:55:00 +0000 (23:55 -0800)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Thu, 2 Mar 2017 23:59:02 +0000 (15:59 -0800)
commitdf919fb21c951c1892bd96d9e6306ce1bec3daa9
tree39dd2ffdc9d61f1de04a114481832876f68d4adf
parentfb5cd9d6d6185afe6d4ef2f3df3f895b6d0abf4c
Fix roles merging to apply only to non-rep-injective types.

Test Plan: validate

Reviewers: simonpj

Subscribers:
compiler/iface/TcIface.hs
testsuite/tests/backpack/should_compile/all.T
testsuite/tests/backpack/should_compile/bkp53.bkp [new file with mode: 0644]
testsuite/tests/backpack/should_compile/bkp53.stderr [new file with mode: 0644]
testsuite/tests/backpack/should_fail/all.T
testsuite/tests/backpack/should_fail/bkpfail47.bkp [new file with mode: 0644]
testsuite/tests/backpack/should_fail/bkpfail47.stderr [new file with mode: 0644]