Remove SDocs from HsDocContext
This commit removes the remaining SDocs from the HsDocContext data type. It adds the following constructors: ClassInstanceCtx -- Class instances ClassMethodSigCtx -- Class method signatures SpecialiseSigCtx -- SPECIALISE pragmas PatSynSigCtx -- Pattern synonym signatures We now report a bit more information for errors while renaming class instances, which slightly improves renamer-emitted error messages.
Showing
- compiler/GHC/Rename/Bind.hs 4 additions, 11 deletionscompiler/GHC/Rename/Bind.hs
- compiler/GHC/Rename/Module.hs 16 additions, 17 deletionscompiler/GHC/Rename/Module.hs
- compiler/GHC/Tc/Errors/Ppr.hs 12 additions, 3 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 16 additions, 5 deletionscompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Tc/Gen/Splice.hs 1 addition, 1 deletioncompiler/GHC/Tc/Gen/Splice.hs
- testsuite/tests/dependent/should_fail/T16326_Fail8.stderr 2 additions, 2 deletionstestsuite/tests/dependent/should_fail/T16326_Fail8.stderr
- testsuite/tests/parser/should_fail/T3811c.stderr 1 addition, 1 deletiontestsuite/tests/parser/should_fail/T3811c.stderr
- testsuite/tests/partial-sigs/should_fail/WildcardInInstanceHead.stderr 2 additions, 2 deletions...ts/partial-sigs/should_fail/WildcardInInstanceHead.stderr
- testsuite/tests/rename/should_fail/T16114.stderr 3 additions, 3 deletionstestsuite/tests/rename/should_fail/T16114.stderr
- testsuite/tests/rename/should_fail/T18240a.stderr 8 additions, 8 deletionstestsuite/tests/rename/should_fail/T18240a.stderr
- testsuite/tests/rename/should_fail/T5951.stderr 3 additions, 3 deletionstestsuite/tests/rename/should_fail/T5951.stderr
- testsuite/tests/saks/should_fail/T16722.stderr 2 additions, 2 deletionstestsuite/tests/saks/should_fail/T16722.stderr
- testsuite/tests/saks/should_fail/saks_fail003.stderr 2 additions, 2 deletionstestsuite/tests/saks/should_fail/saks_fail003.stderr
- testsuite/tests/typecheck/should_fail/ExplicitSpecificity5.stderr 3 additions, 3 deletions...e/tests/typecheck/should_fail/ExplicitSpecificity5.stderr
- testsuite/tests/typecheck/should_fail/ExplicitSpecificity6.stderr 5 additions, 5 deletions...e/tests/typecheck/should_fail/ExplicitSpecificity6.stderr
- testsuite/tests/typecheck/should_fail/T16394.stderr 3 additions, 3 deletionstestsuite/tests/typecheck/should_fail/T16394.stderr
Loading
Please register or sign in to comment