Insert documentation into parsed signature modules
Causes haddock comments in signature modules to be properly inserted into the AST (just as they are for regular modules) if the `-haddock` flag is given. Also adds a test that compares `-ddump-parsed-ast` output for a signature module to prevent further regressions. Fixes #23315
Showing
- compiler/GHC/Parser.y 17 additions, 6 deletionscompiler/GHC/Parser.y
- testsuite/tests/parser/should_compile/T23315/Makefile 18 additions, 0 deletionstestsuite/tests/parser/should_compile/T23315/Makefile
- testsuite/tests/parser/should_compile/T23315/Setup.hs 2 additions, 0 deletionstestsuite/tests/parser/should_compile/T23315/Setup.hs
- testsuite/tests/parser/should_compile/T23315/T23315.cabal 10 additions, 0 deletionstestsuite/tests/parser/should_compile/T23315/T23315.cabal
- testsuite/tests/parser/should_compile/T23315/T23315.hsig 4 additions, 0 deletionstestsuite/tests/parser/should_compile/T23315/T23315.hsig
- testsuite/tests/parser/should_compile/T23315/T23315.stderr 112 additions, 0 deletionstestsuite/tests/parser/should_compile/T23315/T23315.stderr
- testsuite/tests/parser/should_compile/T23315/all.T 3 additions, 0 deletionstestsuite/tests/parser/should_compile/T23315/all.T
Loading
Please register or sign in to comment