diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/flags.xml | 7 | ||||
-rw-r--r-- | docs/users_guide/glasgow_exts.xml | 37 |
2 files changed, 0 insertions, 44 deletions
diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml index b6ace8d23a..c8e5dfc1d6 100644 --- a/docs/users_guide/flags.xml +++ b/docs/users_guide/flags.xml @@ -832,13 +832,6 @@ <entry><option>-XNoMagicHash</option></entry> </row> <row> - <entry><option>-XNewQualifiedOperators</option></entry> - <entry>Enable <link linkend="new-qualified-operators">new - qualified operator syntax</link></entry> - <entry>dynamic</entry> - <entry><option>-XNoNewQualifiedOperators</option></entry> - </row> - <row> <entry><option>-XExplicitForALl</option></entry> <entry>Enable <link linkend="explicit-foralls">explicit universal quantification</link>. Implied by <option>-XScopedTypeVariables</option>, diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index a29e7478c8..e57b294677 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -450,43 +450,6 @@ Indeed, the bindings can even be recursive. </para> </sect2> - <sect2 id="new-qualified-operators"> - <title>New qualified operator syntax</title> - - <para>A new syntax for referencing qualified operators is - planned to be introduced by Haskell', and is enabled in GHC - with - the <option>-XNewQualifiedOperators</option><indexterm><primary><option>-XNewQualifiedOperators</option></primary></indexterm> - option. In the new syntax, the prefix form of a qualified - operator is - written <literal><replaceable>module</replaceable>.(<replaceable>symbol</replaceable>)</literal> - (without NewQualifiedOperators this would - be <literal>(<replaceable>module</replaceable>.<replaceable>symbol</replaceable>)</literal>), - and the infix form is - written <literal>`<replaceable>module</replaceable>.(<replaceable>symbol</replaceable>)`</literal> - (without NewQualifiedOperators this would - be <literal>`<replaceable>module</replaceable>.<replaceable>symbol</replaceable>`</literal>. - For example: -<programlisting> - add x y = Prelude.(+) x y - subtract y = (`Prelude.(-)` y) -</programlisting> - The new form of qualified operators is intended to regularise - the syntax by eliminating odd cases - like <literal>Prelude..</literal>. For example, - when <literal>NewQualifiedOperators</literal> is on, it is possible to - write the enumerated sequence <literal>[Monday..]</literal> - without spaces, whereas without NewQualifiedOperators this would be a - reference to the operator ‘<literal>.</literal>‘ - from module <literal>Monday</literal>.</para> - - <para>When <option>-XNewQualifiedOperators</option> is on, the old - syntax for qualified operators is not accepted, so this - option may cause existing code to break.</para> - - </sect2> - - <!-- ====================== HIERARCHICAL MODULES ======================= --> |