[project @ 2003-07-10 08:11:36 by simonpj]
[ghc-hetmet.git] / ghc / docs / users_guide / primitives.sgml
index aa68d27..807e55a 100644 (file)
@@ -2,11 +2,11 @@
 
 <sect1 id="primitives">
   <title>Unboxed types and primitive operations</title>
-  <indexterm><primary>GHC.Prim module</primary></indexterm>
+  <indexterm><primary>GHC.Exts module</primary></indexterm>
 
   <para>This chapter defines all the types which are primitive in
   Glasgow Haskell, and the operations provided for them. You bring
-  them into scope by importing module <literal>GHC.Prim</literal>.</para>
+  them into scope by importing module <literal>GHC.Exts</literal>.</para>
 
   <para>Note: while you really can use this stuff to write fast code,
   we generally find it a lot less painful, and more satisfying in the
@@ -93,7 +93,7 @@ counterpart&mdash;we saw a threefold speedup on one example.
 </title>
 
 <para>
-Unboxed tuples aren't really exported by <literal>GHC.Prim</literal>,
+Unboxed tuples aren't really exported by <literal>GHC.Exts</literal>,
 they're available by default with <option>-fglasgow-exts</option>.  An
 unboxed tuple looks like this:
 </para>
@@ -365,7 +365,7 @@ negateDouble#       :: Double# -&#62; Double#
 double2Int#         :: Double# -&#62; Int#
 int2Double#         :: Int#    -&#62; Double#
 
-{plus,minux,times,divide}Float# :: Float# -&#62; Float# -&#62; Float#
+{plus,minus,times,divide}Float# :: Float# -&#62; Float# -&#62; Float#
 {gt,ge,eq,ne,lt,le}Float# :: Float# -&#62; Float# -&#62; Bool
 negateFloat#        :: Float# -&#62; Float#
 float2Int#          :: Float# -&#62; Int#
@@ -1172,7 +1172,8 @@ C.
 </para>
 
 <para>
-Please see <xref LinkEnd="sec-stable-pointers"> for more details.
+Please see the module <literal>Foreign.StablePtr</literal> in the
+library documentation for more details.
 </para>
 </listitem>
 </varlistentry>
@@ -1188,7 +1189,8 @@ memory when you're done with it.&rdquo;
 </para>
 
 <para>
-Please see <xref LinkEnd="sec-ForeignObj"> for more details.
+Please see module <literal>Foreign.ForeignPtr</literal> in the library
+documentatation for more details.
 </para>
 </listitem>
 </varlistentry>