Complete work on new OVERLAPPABLE/OVERLAPPING pragmas (Trac #9242)
* Deprecate -XOverlappingInstances * Update test suite. Several tests even had entirely unnecessary uses of -XOverlappingInstances * Update user manual with a careful description of the instance resolution story * Fix an outright bug in the handling of duplidate instances in GHCi, which are meant to silently overwrite the earlier duplicate. The logic was right for family instances but was both more complicated, and plain wrong, for class instances. (If you are interested, the bug was that we were eliminating the duplicate from the InstEnv, but not from the [ClsInst] held in tcg_insts.) Test is ghci044a.
Showing
- compiler/basicTypes/BasicTypes.lhs 39 additions, 37 deletionscompiler/basicTypes/BasicTypes.lhs
- compiler/main/DynFlags.hs 3 additions, 1 deletioncompiler/main/DynFlags.hs
- compiler/main/HscTypes.lhs 8 additions, 7 deletionscompiler/main/HscTypes.lhs
- compiler/typecheck/Inst.lhs 31 additions, 42 deletionscompiler/typecheck/Inst.lhs
- compiler/typecheck/TcRnTypes.lhs 3 additions, 0 deletionscompiler/typecheck/TcRnTypes.lhs
- compiler/types/FamInstEnv.lhs 14 additions, 17 deletionscompiler/types/FamInstEnv.lhs
- compiler/types/InstEnv.lhs 75 additions, 33 deletionscompiler/types/InstEnv.lhs
- docs/users_guide/glasgow_exts.xml 28 additions, 29 deletionsdocs/users_guide/glasgow_exts.xml
- testsuite/tests/deriving/should_compile/T4966.hs 2 additions, 3 deletionstestsuite/tests/deriving/should_compile/T4966.hs
- testsuite/tests/deriving/should_compile/T4966.stderr 1 addition, 1 deletiontestsuite/tests/deriving/should_compile/T4966.stderr
- testsuite/tests/generics/Uniplate/GUniplate.hs 4 additions, 2 deletionstestsuite/tests/generics/Uniplate/GUniplate.hs
- testsuite/tests/ghci.debugger/scripts/print019.stderr 2 additions, 2 deletionstestsuite/tests/ghci.debugger/scripts/print019.stderr
- testsuite/tests/ghci/prog007/C.hs 0 additions, 2 deletionstestsuite/tests/ghci/prog007/C.hs
- testsuite/tests/ghci/scripts/all.T 1 addition, 0 deletionstestsuite/tests/ghci/scripts/all.T
- testsuite/tests/ghci/scripts/ghci044.script 11 additions, 8 deletionstestsuite/tests/ghci/scripts/ghci044.script
- testsuite/tests/ghci/scripts/ghci044.stderr 6 additions, 11 deletionstestsuite/tests/ghci/scripts/ghci044.stderr
- testsuite/tests/ghci/scripts/ghci044a.hs 9 additions, 0 deletionstestsuite/tests/ghci/scripts/ghci044a.hs
- testsuite/tests/ghci/scripts/ghci044a.script 9 additions, 0 deletionstestsuite/tests/ghci/scripts/ghci044a.script
- testsuite/tests/ghci/scripts/ghci044a.stdout 2 additions, 0 deletionstestsuite/tests/ghci/scripts/ghci044a.stdout
- testsuite/tests/ghci/scripts/ghci047.script 3 additions, 3 deletionstestsuite/tests/ghci/scripts/ghci047.script
Loading
Please register or sign in to comment