summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-yao Xia <lysxia@gmail.com>2021-03-08 11:57:06 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-10 02:38:54 -0400
commit8baa8874935daae7d2b7c6f5a1215a379b8b85db (patch)
treee9c66c56fae3ac6cdf8b311d90d715caa574dbcf
parentf4a5e30e7b027894535872164df50c300d8e6b0f (diff)
downloadhaskell-8baa8874935daae7d2b7c6f5a1215a379b8b85db.tar.gz
User's Guide: reword and fix punctuation in description of PostfixOperators
-rw-r--r--docs/users_guide/exts/rebindable_syntax.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/users_guide/exts/rebindable_syntax.rst b/docs/users_guide/exts/rebindable_syntax.rst
index 2d46aa29ac..3a091bc7fb 100644
--- a/docs/users_guide/exts/rebindable_syntax.rst
+++ b/docs/users_guide/exts/rebindable_syntax.rst
@@ -131,7 +131,8 @@ Postfix operators
The :extension:`PostfixOperators` extension enables a small extension to the syntax
of left operator sections, which allows you to define postfix operators.
-The extension is this: the left section ::
+The extension is this: for any expression ``e`` and operator ``(!)``, the left
+section ::
(e !)
@@ -140,8 +141,7 @@ execution) to the expression ::
((!) e)
-(for any expression ``e`` and operator ``(!)``. The strict Haskell 98
-interpretation is that the section is equivalent to ::
+The strict Haskell 98 interpretation is that the section is equivalent to ::
(\y -> (!) e y)