[Git][ghc/ghc][wip/az/ghc-9.10-backports-1] 8 commits: Add release notes entry for GHC proposal 575

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Wed Apr 24 15:00:46 UTC 2024



Ben Gamari pushed to branch wip/az/ghc-9.10-backports-1 at Glasgow Haskell Compiler / GHC


Commits:
b9b3b007 by Matthew Craven at 2024-04-15T10:57:59-04:00
Add release notes entry for GHC proposal 575

- - - - -
26b6c7fd by Matthew Craven at 2024-04-15T10:59:17-04:00
Users' guide: Fix base-ref links containing symbols

- - - - -
dfd0e1c6 by Alan Zimmerman at 2024-04-24T15:00:11+00:00
EPA: Add additional comments field to AnnsModule

This is used in exact printing to store comments coming after the
`where` keyword but before any comments allocated to imports or decls.

It is used in ghc-exactprint, see
https://github.com/alanz/ghc-exactprint/commit/44bbed311fd8f0d053053fef195bf47c17d34fa7

- - - - -
31174204 by Alan Zimmerman at 2024-04-24T15:00:11+00:00
EPA: Fix comments in mkListSyntaxTy0

Also extend the test to confirm.

Addresses #24669, 1 of 4

(cherry picked from commit f07015858fd79dca41983dbf3a249dfecd8d2eea)

- - - - -
c06ebd5f by Alan Zimmerman at 2024-04-24T15:00:11+00:00
EPA: Provide correct span for PatBind

And remove unused parameter in checkPatBind

Contributes to #24669

(cherry picked from commit c90c60390aa3949b400f26ee0534273c56e19005)

- - - - -
b07bbb46 by Alan Zimmerman at 2024-04-24T15:00:11+00:00
EPA: Fix span for PatBuilderAppType

Include the location of the prefix @ in the span for InVisPat.

Also removes unnecessary annotations from HsTP.

Contributes to #24669

(cherry picked from commit 26036f96919b1a8b99715dd99724163012c719fc)

- - - - -
51d5ff25 by Alan Zimmerman at 2024-04-24T15:00:11+00:00
EPA: Avoid duplicated comments in splice decls

Contributes to #24669

(cherry picked from commit 2f8e3a254a20f4573aec26fc85ab74b51d661472)

- - - - -
8a99d663 by Alan Zimmerman at 2024-04-24T15:00:11+00:00
EPA: Extend StringLiteral range to include trailing commas

This goes slightly against the exact printing philosophy where
trailing decorations should be in an annotation, but the
practicalities of adding it to the WarningTxt environment, and the
problems caused by deviating do not make a more principles approach
worthwhile.

(cherry picked from commit 00d3ecf0775c1a3f1ab8495e5e125f21d450394e)

- - - - -


30 changed files:

- compiler/GHC/Hs.hs
- compiler/GHC/Hs/Binds.hs
- compiler/GHC/Hs/Type.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/ThToHs.hs
- docs/users_guide/9.10.1-notes.rst
- docs/users_guide/conf.py
- testsuite/tests/ghc-api/exactprint/T22919.stderr
- testsuite/tests/ghc-api/exactprint/Test20239.stderr
- testsuite/tests/ghc-api/exactprint/ZeroWidthSemi.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr
- testsuite/tests/haddock/should_compile_flag_haddock/T24221.stderr
- testsuite/tests/linear/should_fail/LinearLet6.stderr
- testsuite/tests/linear/should_fail/LinearLet7.stderr
- testsuite/tests/module/mod185.stderr
- testsuite/tests/parser/should_compile/DumpParsedAst.stderr
- testsuite/tests/parser/should_compile/DumpParsedAstComments.stderr
- testsuite/tests/parser/should_compile/DumpSemis.stderr
- testsuite/tests/parser/should_compile/KindSigs.stderr
- testsuite/tests/parser/should_compile/T15323.stderr
- testsuite/tests/parser/should_compile/T20452.stderr
- testsuite/tests/parser/should_compile/T20718.stderr
- testsuite/tests/parser/should_compile/T20718b.stderr
- testsuite/tests/parser/should_compile/T20846.stderr
- testsuite/tests/parser/should_compile/T23315/T23315.stderr
- testsuite/tests/printer/AnnotationNoListTuplePuns.hs
- + testsuite/tests/printer/AnnotationNoListTuplePuns.stdout
- testsuite/tests/printer/T18791.stderr


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9f509a09f60707024cac6557f2b07c2e06bd9b23...8a99d6635cc1035f5dd21b086a6ba6234d4d3e49

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9f509a09f60707024cac6557f2b07c2e06bd9b23...8a99d6635cc1035f5dd21b086a6ba6234d4d3e49
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240424/eb7ace82/attachment.html>


More information about the ghc-commits mailing list