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. (cherry picked from commit 13829758)
Showing
- compiler/typecheck/TcTyClsDecls.lhs 14 additions, 0 deletionscompiler/typecheck/TcTyClsDecls.lhs
- testsuite/tests/roles/should_compile/Roles14.hs 7 additions, 0 deletionstestsuite/tests/roles/should_compile/Roles14.hs
- testsuite/tests/roles/should_compile/Roles14.stderr 14 additions, 0 deletionstestsuite/tests/roles/should_compile/Roles14.stderr
- testsuite/tests/roles/should_compile/Roles4.hs 0 additions, 4 deletionstestsuite/tests/roles/should_compile/Roles4.hs
- testsuite/tests/roles/should_compile/Roles4.stderr 0 additions, 6 deletionstestsuite/tests/roles/should_compile/Roles4.stderr
- testsuite/tests/roles/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/roles/should_compile/all.T
- testsuite/tests/roles/should_fail/T8773.hs 7 additions, 0 deletionstestsuite/tests/roles/should_fail/T8773.hs
- testsuite/tests/roles/should_fail/T8773.stderr 5 additions, 0 deletionstestsuite/tests/roles/should_fail/T8773.stderr
- testsuite/tests/roles/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/roles/should_fail/all.T
Loading
Please register or sign in to comment