From d0f7e402963b6f6cbe78c2a0421da2dacdca6921 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 7 Oct 2008 15:09:57 +0000 Subject: [PATCH] update documentation for PostfixOperators --- docs/users_guide/glasgow_exts.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 784f569..2169bba 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -1176,8 +1176,9 @@ fromInteger :: Integer -> Bool -> Bool Postfix operators -GHC allows 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 flag 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 (e !) @@ -1194,10 +1195,6 @@ That is, the operator must be a function of two arguments. GHC allows it to take only one argument, and that in turn allows you to write the function postfix. -Since this extension goes beyond Haskell 98, it should really be enabled -by a flag; but in fact it is enabled all the time. (No Haskell 98 programs -change their behaviour, of course.) - The extension does not extend to the left-hand side of function definitions; you must define such a function in prefix form. -- 1.7.10.4