summaryrefslogtreecommitdiff
path: root/docs/users_guide
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2022-09-18 15:49:50 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-09-20 03:50:42 -0400
commit59fe128c37b2befb1ece4bf3f8f5c9082bd213eb (patch)
tree98a239beac6d9ce896d72ab087215f014230cf28 /docs/users_guide
parent545ff490144ed3ddd596d2a0c01b0a16b5528f63 (diff)
downloadhaskell-59fe128c37b2befb1ece4bf3f8f5c9082bd213eb.tar.gz
Fix -Woperator-whitespace for consym (part of #19372)
Due to an oversight, the initial specification and implementation of -Woperator-whitespace focused on varsym exclusively and completely ignored consym. This meant that expressions such as "x+ y" would produce a warning, while "x:+ y" would not. The specification was corrected in ghc-proposals pull request #404, and this patch updates the implementation accordingly. Regression test included.
Diffstat (limited to 'docs/users_guide')
-rw-r--r--docs/users_guide/9.6.1-notes.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/users_guide/9.6.1-notes.rst b/docs/users_guide/9.6.1-notes.rst
index 4d71cda7bc..355fc63838 100644
--- a/docs/users_guide/9.6.1-notes.rst
+++ b/docs/users_guide/9.6.1-notes.rst
@@ -68,6 +68,9 @@ Compiler
- The :extension:`TypeInType` is now marked as deprecated. Its meaning has been included
in :extension:`PolyKinds` and :extension:`DataKinds`.
+- The :ghc-flag:`-Woperator-whitespace` warning no longer ignores constructor symbols
+ (operators starting with ``:``).
+
GHCi
~~~~