summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-yao Xia <lysxia@gmail.com>2021-03-08 11:57:06 -0500
committerMatthew Pickering <matthewtpickering@gmail.com>2021-06-09 08:33:52 +0100
commit4f72b92bac97c97112a28a5be968b9eb364b5e80 (patch)
tree35023ffa901516051e2cccaec39b6d840681bc55
parent9e724f6e5bcb31abd270ea44fb01b1edb18f626f (diff)
downloadhaskell-4f72b92bac97c97112a28a5be968b9eb364b5e80.tar.gz
User's Guide: reword and fix punctuation in description of PostfixOperatorswip/m5203
-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)