[Git][ghc/ghc][master] Add a release-notes entry for -Wincomplete-record-selectors
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Oct 16 03:45:37 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
ab1767d5 by Simon Peyton Jones at 2024-10-15T23:45:04-04:00
Add a release-notes entry for -Wincomplete-record-selectors
- - - - -
1 changed file:
- docs/users_guide/9.14.1-notes.rst
Changes:
=====================================
docs/users_guide/9.14.1-notes.rst
=====================================
@@ -11,6 +11,15 @@ for specific guidance on migrating programs to this release.
Language
~~~~~~~~
+* ``-Wincomplete-record-selectors`` is now part of `-Wall`, as specified
+ by `GHC Proposal 516: add warning for incomplete record selectors <https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0516-incomplete-record-selectors.rst>_`.
+ Hence, if a library is compiled with ``-Werror``, compilation may now fail. Solution: fix the library.
+ Workaround: add ``-Werror=no-incomplete-record-selectors``.
+
+ Note that this warning is at least
+ as serious as a warning about missing patterns from a function definition, perhaps even
+ more so, since it is invisible in the source program.
+
Compiler
~~~~~~~~
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ab1767d5c2018e7eb26200c614d9c5bee723ef1c
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ab1767d5c2018e7eb26200c614d9c5bee723ef1c
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/20241015/50e2d86a/attachment.html>
More information about the ghc-commits
mailing list