Fix #8773.
authorRichard Eisenberg <eir@cis.upenn.edu>
Thu, 13 Feb 2014 19:22:20 +0000 (14:22 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 13 Feb 2014 20:37:02 +0000 (15:37 -0500)
commit138297585f88351352e0ed878b25f26e1d6edfef
treebf2164609a3a83282cd80e0fbb4da8f2709de7e0
parent473f12a3be27a00b035f1fdc7050a0ff31bf12ff
Fix #8773.

To make a role annotation on a class asserting a role other than
nominal, you now need -XIncoherentInstances. See the ticket for
more information as to why this is a good idea.
compiler/typecheck/TcTyClsDecls.lhs
testsuite/tests/roles/should_compile/Roles14.hs [new file with mode: 0644]
testsuite/tests/roles/should_compile/Roles14.stderr [new file with mode: 0644]
testsuite/tests/roles/should_compile/Roles4.hs
testsuite/tests/roles/should_compile/Roles4.stderr
testsuite/tests/roles/should_compile/all.T
testsuite/tests/roles/should_fail/T8773.hs [new file with mode: 0644]
testsuite/tests/roles/should_fail/T8773.stderr [new file with mode: 0644]
testsuite/tests/roles/should_fail/all.T