[Git][ghc/ghc][master] Make forall a keyword (#23719)
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Mon Dec 11 09:20:01 UTC 2023
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
d9e4c597 by Vladislav Zavialov at 2023-12-11T04:19:34-05:00
Make forall a keyword (#23719)
Before this change, GHC used to accept `forall` as a term-level
identifier:
-- from constraints-0.13
forall :: forall p. (forall a. Dict (p a)) -> Dict (Forall p)
forall d = ...
Now it is a parse error.
The -Wforall-identifier warning has served its purpose and is now
a deprecated no-op.
- - - - -
30 changed files:
- compiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs
- compiler/GHC/Parser.y
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Rename/Bind.hs
- compiler/GHC/Rename/HsType.hs
- compiler/GHC/Rename/Module.hs
- compiler/GHC/Rename/Pat.hs
- compiler/GHC/Rename/Utils.hs
- compiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Types/Error/Codes.hs
- compiler/GHC/Types/Hint.hs
- compiler/GHC/Types/Hint/Ppr.hs
- compiler/GHC/Utils/Lexeme.hs
- docs/users_guide/9.10.1-notes.rst
- docs/users_guide/bugs.rst
- docs/users_guide/using-warnings.rst
- testsuite/tests/rename/should_compile/T20609.hs → testsuite/tests/parser/should_fail/T20609.hs
- + testsuite/tests/parser/should_fail/T20609.stderr
- testsuite/tests/rename/should_compile/T20609a.hs → testsuite/tests/parser/should_fail/T20609a.hs
- + testsuite/tests/parser/should_fail/T20609a.stderr
- testsuite/tests/rename/should_compile/T20609b.hs → testsuite/tests/parser/should_fail/T20609b.hs
- + testsuite/tests/parser/should_fail/T20609b.stderr
- testsuite/tests/rename/should_compile/T20609c.hs → testsuite/tests/parser/should_fail/T20609c.hs
- + testsuite/tests/parser/should_fail/T20609c.stderr
- testsuite/tests/rename/should_compile/T20609d.hs → testsuite/tests/parser/should_fail/T20609d.hs
- + testsuite/tests/parser/should_fail/T20609d.stderr
- testsuite/tests/parser/should_fail/all.T
- testsuite/tests/printer/PprUnicodeSyntax.hs
The diff was not included because it is too large.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d9e4c5978238322934fa0e2677f32d44841b822d
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d9e4c5978238322934fa0e2677f32d44841b822d
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/20231211/4aad008a/attachment-0001.html>
More information about the ghc-commits
mailing list