Detect family instance orphans correctly
We were treating a type-family instance as a non-orphan if there was a type constructor on its /right-hand side/ that was local. Boo! Utterly wrong. With this patch, we correctly check the /left-hand side/ instead! Fixes #22717
Showing
- compiler/GHC.hs 1 addition, 2 deletionscompiler/GHC.hs
- compiler/GHC/Core/FVs.hs 10 additions, 13 deletionscompiler/GHC/Core/FVs.hs
- compiler/GHC/Core/FamInstEnv.hs 8 additions, 1 deletioncompiler/GHC/Core/FamInstEnv.hs
- compiler/GHC/Iface/Make.hs 2 additions, 1 deletioncompiler/GHC/Iface/Make.hs
- compiler/GHC/Runtime/Eval.hs 1 addition, 2 deletionscompiler/GHC/Runtime/Eval.hs
- compiler/GHC/Tc/Errors/Ppr.hs 2 additions, 1 deletioncompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Module.hs 1 addition, 2 deletionscompiler/GHC/Tc/Module.hs
- testsuite/tests/indexed-types/should_compile/Makefile 8 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/Makefile
- testsuite/tests/indexed-types/should_compile/T22717.hs 8 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T22717.hs
- testsuite/tests/indexed-types/should_compile/T22717b.hs 8 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T22717b.hs
- testsuite/tests/indexed-types/should_compile/T22717c.hs 12 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T22717c.hs
- testsuite/tests/indexed-types/should_compile/T22717d.hs 5 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T22717d.hs
- testsuite/tests/indexed-types/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/indexed-types/should_compile/all.T
Loading
Please register or sign in to comment