summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2021-06-24 17:55:53 +0530
committerZubin Duggal <zubin.duggal@gmail.com>2021-06-24 17:55:53 +0530
commit313a4438881d9d2c64f25e7604e7540a6a91d462 (patch)
tree829cc9166a922a2be9ba78e6001e36cbe7f9a784
parent38a6d8b8ce838d09a918a536ac80427d5555ca6d (diff)
downloadhaskell-wip/docs-fixes-19988.tar.gz
Update docs for change in parsing behaviour of infix operators like in GHC 9wip/docs-fixes-19988
-rw-r--r--docs/users_guide/9.0.1-notes.rst10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/users_guide/9.0.1-notes.rst b/docs/users_guide/9.0.1-notes.rst
index 62aaef2a8f..32f4b14847 100644
--- a/docs/users_guide/9.0.1-notes.rst
+++ b/docs/users_guide/9.0.1-notes.rst
@@ -246,9 +246,15 @@ Language
as ``f (-123)``, but ``x-123`` as ``(-) x 123``. Before this amendment,
:extension:`NegativeLiterals` caused ``x-123`` to be parsed as ``x(-123)``.
-* GHC now requires whitespace between infix operators and their arguments in
- some cases where it was not previously necessary as the result of the
+* GHC is now more sensitive to whitespace between infix operators and their arguments,
+ requiring it in some cases where it was not previously necessary as the result of the
:ref:`whitespace-sensitive operator parsing proposal <https://github.com/ghc-proposals/ghc-proposals/pull/229>`.
+ It also affects the usage of ``!``,``~`` and ``@`` as BangPatterns, irrefutable patterns
+ and type applications respectively.
+ This means that expressions that were parsed as visible type applications
+ in previous versions when the ``@`` was surrounded by whitespace will now
+ be parsed as an operator application.
+ For more details see the `migration guide on the wiki <https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#whitespace-sensitive-and->`.
Compiler
~~~~~~~~