diff options
| author | Josef Svenningsson <josef.svenningsson@gmail.com> | 2007-10-07 21:38:58 +0000 |
|---|---|---|
| committer | Josef Svenningsson <josef.svenningsson@gmail.com> | 2007-10-07 21:38:58 +0000 |
| commit | 5263c9ab4408e3b62dbf7505ab40a81946d4e49b (patch) | |
| tree | 8a8b1cab9a66f3c469c311d285fad2d1214b5f34 /docs/users_guide/ffi-chap.xml | |
| parent | 160e41ed98615c633be9a7c27ec2f9ed768dae7f (diff) | |
| download | haskell-5263c9ab4408e3b62dbf7505ab40a81946d4e49b.tar.gz | |
Fix a whole heap of speling errrs in the docs
Diffstat (limited to 'docs/users_guide/ffi-chap.xml')
| -rw-r--r-- | docs/users_guide/ffi-chap.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/users_guide/ffi-chap.xml b/docs/users_guide/ffi-chap.xml index 96cbd596e5..988f95dc1d 100644 --- a/docs/users_guide/ffi-chap.xml +++ b/docs/users_guide/ffi-chap.xml @@ -55,7 +55,7 @@ the <option>-fglasgow-exts</option><indexterm><primary><option>-fglasgow-exts</o </para> <para>The Haskell FFI already specifies that arguments and results of foreign imports and exports will be automatically unwrapped if they are -newtypes (Section 3.2 of the FFI addendum). GHC extends the FFI by automatically unnwrapping any newtypes that +newtypes (Section 3.2 of the FFI addendum). GHC extends the FFI by automatically unwrapping any newtypes that wrap the IO monad itself. More precisely, wherever the FFI specification requires an IO type, GHC will accept any newtype-wrapping of an IO type. For example, these declarations are @@ -300,10 +300,10 @@ int main(int argc, char *argv[]) } </programlisting> - <para>The intialisation routine, <literal>mylib_init</literal>, calls + <para>The initialisation routine, <literal>mylib_init</literal>, calls <literal>hs_init()</literal> and <literal>hs_add_root()</literal> as normal to initialise the Haskell runtime, and the corresponding - deinitialisation funtion <literal>mylib_end()</literal> calls + deinitialisation function <literal>mylib_end()</literal> calls <literal>hs_exit()</literal> to shut down the runtime.</para> </sect3> |
