X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fusers_guide%2Fglasgow_exts.xml;h=42c3fb8f9c62a8f7a97bbc553648f5d87a63fd85;hb=02e3571607b7c0bf460cdac1e02fa0ddcd6c4a8b;hp=ba18faf1403e2a895bf238cd693f7a02cd875998;hpb=b2020bada0e177105bf0fd3259850b9d645f1995;p=ghc-hetmet.git
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index ba18faf..42c3fb8 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -52,16 +52,42 @@ documentation describes all the libraries that come with GHC.
Language options recognised by Cabal can also be enabled using the LANGUAGE pragma,
thus {-# LANGUAGE TemplateHaskell #-} (see >).
- The flag :
+ The flag
- simultaneously enables the following extensions:
- ,
- ,
- ,
- ,
- .
+ is equivalent to enabling the following extensions:
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ ,
+ .
Enabling these options is the only
- effect of -fglasgow-exts
+ effect of -fglasgow-exts.
We are trying to move away from this portmanteau flag,
and towards enabling features individually.
@@ -339,6 +365,43 @@ Indeed, the bindings can even be recursive.
+
+ New qualified operator syntax
+
+ A new syntax for referencing qualified operators is
+ planned to be introduced by Haskell', and is enabled in GHC
+ with
+ the
+ option. In the new syntax, the prefix form of a qualified
+ operator is
+ written module.(symbol)
+ (in Haskell 98 this would
+ be (module.symbol)),
+ and the infix form is
+ written `module.(symbol)`
+ (in Haskell 98 this would
+ be `module.symbol`.
+ For example:
+
+ add x y = Prelude.(+) x y
+ subtract y = (`Prelude.(-)` y)
+
+ The new form of qualified operators is intended to regularise
+ the syntax by eliminating odd cases
+ like Prelude... For example,
+ when NewQualifiedOperators is on, it is possible to
+ write the enerated sequence [Monday..]
+ without spaces, whereas in Haskell 98 this would be a
+ reference to the operator ‘.‘
+ from module Monday.
+
+ When is on, the old Haskell
+ 98 syntax for qualified operators is not accepted, so this
+ option may cause existing Haskell 98 code to break.
+
+
+
+
@@ -796,11 +859,6 @@ and improve termination (Section 3.2 of the paper).
-The web page: http://www.cse.ogi.edu/PacSoft/projects/rmb/
-contains up to date information on recursive monadic bindings.
-
-
-
Historical note: The old implementation of the mdo-notation (and most
of the existing documents) used the name
MonadRec for the class and the corresponding library.