diff options
author | Ian Lynagh <igloo@earth.li> | 2010-11-23 23:35:36 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-11-23 23:35:36 +0000 |
commit | 46809fa91667e952afe016e4cd704b21274241b4 (patch) | |
tree | 81e28ff1ad4024b4d34cc2ccf75186b515e409fd /docs | |
parent | b56d78783390e922c4bc8106f04729de01749e01 (diff) | |
download | haskell-46809fa91667e952afe016e4cd704b21274241b4.tar.gz |
Remove references to Haskell 98
They are no longer right, as we have Haskell' generating new Haskell
standards.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/ffi-chap.xml | 6 | ||||
-rw-r--r-- | docs/users_guide/glasgow_exts.xml | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/docs/users_guide/ffi-chap.xml b/docs/users_guide/ffi-chap.xml index 2e6ce2f372..aea2f5eb13 100644 --- a/docs/users_guide/ffi-chap.xml +++ b/docs/users_guide/ffi-chap.xml @@ -6,10 +6,10 @@ Foreign function interface (FFI) </title> - <para>GHC (mostly) conforms to the Haskell 98 Foreign Function Interface - Addendum 1.0, whose definition is available from <ulink url="http://www.haskell.org/"><literal>http://www.haskell.org/</literal></ulink>.</para> + <para>GHC (mostly) conforms to the Haskell Foreign Function Interface, + whose definition is part of the Haskell Report on <ulink url="http://www.haskell.org/"><literal>http://www.haskell.org/</literal></ulink>.</para> - <para>To enable FFI support in GHC, give the <option>-XForeignFunctionInterface</option><indexterm><primary><option>-XForeignFunctionInterface</option></primary> + <para>FFI support is enabled by default, but can be enabled or disabled explicitly with the <option>-XForeignFunctionInterface</option><indexterm><primary><option>-XForeignFunctionInterface</option></primary> </indexterm> flag.</para> <para>GHC implements a number of GHC-specific extensions to the FFI diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index dab683a429..172d6ff351 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -3,8 +3,9 @@ <indexterm><primary>language, GHC</primary></indexterm> <indexterm><primary>extensions, GHC</primary></indexterm> As with all known Haskell systems, GHC implements some extensions to -the language. They are all enabled by options; by default GHC -understands only plain Haskell 98. +the language. They can all be enabled or disabled by commandline flags +or language pragmas. By default GHC understands the most recent Haskell +version it supports, plus a handful of extensions. </para> <para> @@ -39,8 +40,7 @@ documentation</ulink> describes all the libraries that come with GHC. </indexterm> <para>The language option flags control what variation of the language are - permitted. Leaving out all of them gives you standard Haskell - 98.</para> + permitted.</para> <para>Language options can be controlled in two ways: <itemizedlist> @@ -439,10 +439,10 @@ Indeed, the bindings can even be recursive. <listitem><para> <literal>'x'#</literal> has type <literal>Char#</literal></para> </listitem> <listitem><para> <literal>"foo"#</literal> has type <literal>Addr#</literal></para> </listitem> <listitem><para> <literal>3#</literal> has type <literal>Int#</literal>. In general, - any Haskell 98 integer lexeme followed by a <literal>#</literal> is an <literal>Int#</literal> literal, e.g. + any Haskell integer lexeme followed by a <literal>#</literal> is an <literal>Int#</literal> literal, e.g. <literal>-0x3A#</literal> as well as <literal>32#</literal></para>.</listitem> <listitem><para> <literal>3##</literal> has type <literal>Word#</literal>. In general, - any non-negative Haskell 98 integer lexeme followed by <literal>##</literal> + any non-negative Haskell integer lexeme followed by <literal>##</literal> is a <literal>Word#</literal>. </para> </listitem> <listitem><para> <literal>3.2#</literal> has type <literal>Float#</literal>.</para> </listitem> <listitem><para> <literal>3.2##</literal> has type <literal>Double#</literal></para> </listitem> @@ -460,11 +460,11 @@ Indeed, the bindings can even be recursive. option. In the new syntax, the prefix form of a qualified operator is written <literal><replaceable>module</replaceable>.(<replaceable>symbol</replaceable>)</literal> - (in Haskell 98 this would + (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> - (in Haskell 98 this would + (without NewQualifiedOperators this would be <literal>`<replaceable>module</replaceable>.<replaceable>symbol</replaceable>`</literal>. For example: <programlisting> @@ -476,13 +476,13 @@ Indeed, the bindings can even be recursive. 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 in Haskell 98 this would be a + 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 Haskell - 98 syntax for qualified operators is not accepted, so this - option may cause existing Haskell 98 code to break.</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> |