summaryrefslogtreecommitdiff
path: root/docs/users_guide/glasgow_exts.xml
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-10-04 11:47:44 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-10-04 11:47:44 +0100
commitec436fefbc3e35fc2e558184b4b0b98cec78eeb6 (patch)
tree878f262bbc7044ae76bbff25b485b00df2b77d87 /docs/users_guide/glasgow_exts.xml
parent9fc03d37c67098ab9dfa9403ff2c94e640074a76 (diff)
downloadhaskell-ec436fefbc3e35fc2e558184b4b0b98cec78eeb6.tar.gz
Remove unnecessary references to -fglagow-exts
replacing them by the appropriate flag. Suggested by Trac #5526.
Diffstat (limited to 'docs/users_guide/glasgow_exts.xml')
-rw-r--r--docs/users_guide/glasgow_exts.xml14
1 files changed, 5 insertions, 9 deletions
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index ed18e9c96f..bcb74a86b7 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -206,8 +206,8 @@ since <literal>b</literal> has type <literal>Int#</literal>.
</title>
<para>
-Unboxed tuples aren't really exported by <literal>GHC.Exts</literal>,
-they're available by default with <option>-fglasgow-exts</option>. An
+Unboxed tuples aren't really exported by <literal>GHC.Exts</literal>;
+they are a syntactic extension enabled by the language flag <option>-XUnboxedTuples</option>. An
unboxed tuple looks like this:
</para>
@@ -954,8 +954,7 @@ class Monad m => MonadFix m where
Here are some other important points in using the recursive-do notation:
<itemizedlist>
<listitem><para>
-It is enabled with the flag <literal>-XDoRec</literal>, which is in turn implied by
-<literal>-fglasgow-exts</literal>.
+It is enabled with the flag <literal>-XDoRec</literal>.
</para></listitem>
<listitem><para>
@@ -2096,8 +2095,8 @@ The following syntax is stolen:
<sect2 id="nullary-types">
<title>Data types with no constructors</title>
-<para>With the <option>-fglasgow-exts</option> flag, GHC lets you declare
-a data type with no constructors. For example:</para>
+<para>With the <option>-XEmptyDataDecls</option> flag (or equivalent LANGUAGE pragma),
+GHC lets you declare a data type with no constructors. For example:</para>
<programlisting>
data S -- S :: *
@@ -3504,9 +3503,6 @@ url="http://research.microsoft.com/~simonpj/Papers/type-class-design-space/">Typ
classes: exploring the design space</ulink> (Simon Peyton Jones, Mark
Jones, Erik Meijer).
</para>
-<para>
-All the extensions are enabled by the <option>-fglasgow-exts</option> flag.
-</para>
<sect3>
<title>Multi-parameter type classes</title>