Allow docstrings after exports
Here we extend the parser and AST to preserve docstrings following export items. We then extend Haddock to parse `@since` annotations in such docstrings, allowing changes in export structure to be properly documented. Bumps haddock submodule.
Showing
- compiler/GHC/Hs/Doc.hs 10 additions, 3 deletionscompiler/GHC/Hs/Doc.hs
- compiler/GHC/Hs/ImpExp.hs 41 additions, 22 deletionscompiler/GHC/Hs/ImpExp.hs
- compiler/GHC/HsToCore/Docs.hs 21 additions, 0 deletionscompiler/GHC/HsToCore/Docs.hs
- compiler/GHC/Iface/Ext/Ast.hs 4 additions, 4 deletionscompiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser.y 11 additions, 8 deletionscompiler/GHC/Parser.y
- compiler/GHC/Parser/PostProcess.hs 9 additions, 6 deletionscompiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Parser/PostProcess/Haddock.hs 14 additions, 2 deletionscompiler/GHC/Parser/PostProcess/Haddock.hs
- compiler/GHC/Rename/Names.hs 26 additions, 23 deletionscompiler/GHC/Rename/Names.hs
- compiler/GHC/Tc/Errors/Ppr.hs 1 addition, 1 deletioncompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Gen/Export.hs 14 additions, 10 deletionscompiler/GHC/Tc/Gen/Export.hs
- compiler/Language/Haskell/Syntax/ImpExp.hs 58 additions, 8 deletionscompiler/Language/Haskell/Syntax/ImpExp.hs
- testsuite/tests/haddock/haddock_examples/Test.hs 15 additions, 0 deletionstestsuite/tests/haddock/haddock_examples/Test.hs
- testsuite/tests/haddock/haddock_examples/haddock.Test.stderr 10 additions, 1 deletiontestsuite/tests/haddock/haddock_examples/haddock.Test.stderr
- testsuite/tests/parser/should_compile/DumpRenamedAst.stderr 2 additions, 1 deletiontestsuite/tests/parser/should_compile/DumpRenamedAst.stderr
- testsuite/tests/parser/should_compile/T14189.stderr 2 additions, 1 deletiontestsuite/tests/parser/should_compile/T14189.stderr
- testsuite/tests/showIface/DocsInHiFile1.stdout 2 additions, 0 deletionstestsuite/tests/showIface/DocsInHiFile1.stdout
- testsuite/tests/showIface/DocsInHiFileTH.stdout 2 additions, 0 deletionstestsuite/tests/showIface/DocsInHiFileTH.stdout
- testsuite/tests/showIface/HaddockIssue849.stdout 2 additions, 0 deletionstestsuite/tests/showIface/HaddockIssue849.stdout
- testsuite/tests/showIface/HaddockOpts.stdout 2 additions, 0 deletionstestsuite/tests/showIface/HaddockOpts.stdout
- testsuite/tests/showIface/HaddockSpanIssueT24378.stdout 3 additions, 0 deletionstestsuite/tests/showIface/HaddockSpanIssueT24378.stdout
Loading
Please register or sign in to comment