summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSasa Bogicevic <t4nt0r@protonmail.com>2018-10-15 13:47:48 -0400
committerBen Gamari <ben@smart-cactus.org>2018-10-15 17:41:48 -0400
commit0b0cb484eb0b51bf5485dfadff7cd8a079ceb16e (patch)
tree8ae642d14e0970391bf713c2a400061f45bd3c04 /docs
parent846fe90464a1916df4ea72659255963a596eec84 (diff)
downloadhaskell-0b0cb484eb0b51bf5485dfadff7cd8a079ceb16e.tar.gz
Surprising error message with bang pattern
Reviewers: bgamari, alanz Reviewed By: bgamari Subscribers: sgraf, mpickering, rwbarton, thomie, carter GHC Trac Issues: #13600 Differential Revision: https://phabricator.haskell.org/D5040
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/using-warnings.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index aeabbe9713..f603a4cf28 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -39,6 +39,7 @@ generally likely to indicate bugs in your program. These are:
* :ghc-flag:`-Winaccessible-code`
* :ghc-flag:`-Wstar-is-type`
* :ghc-flag:`-Wstar-binder`
+ * :ghc-flag:`-Wspace-after-bang`
The following flags are simple ways to select standard "packages" of warnings:
@@ -1256,6 +1257,12 @@ of ``-W(no-)*``.
per-module basis with :ghc-flag:`-Wno-simplifiable-class-constraints
<-Wsimplifiable-class-constraints>`.
+.. ghc-flag:: -Wspace-after-bang
+ :shortdesc: warn for missing space before the second argument
+ of an infix definition of ``(!)`` when
+ :ghc-flag:`-XBangPatterns` are not enabled
+ :type: dynamic
+ :reverse: -Wno-missing-space-after-bang
.. ghc-flag:: -Wtabs
:shortdesc: warn if there are tabs in the source file
:type: dynamic