Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
e60f4a63
Commit
e60f4a63
authored
Jan 19, 2005
by
simonmar
Browse files
[project @ 2005-01-19 10:04:17 by simonmar]
Mention -fffi in this chapter.
parent
9cb75205
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/docs/users_guide/ffi-chap.xml
View file @
e60f4a63
...
...
@@ -2,13 +2,20 @@
<!-- FFI docs as a chapter -->
<chapter
id=
"ffi"
>
<title>
Foreign function interface (FFI)
</title>
<title>
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://haskell.org/"
><literal>
http://haskell.org/
</literal></ulink >
.
The FFI support in GHC diverges from the Addendum in the following ways:
</para>
Addendum 1.0, whose definition is available from
<ulink
url=
"http://haskell.org/"
><literal>
http://haskell.org/
</literal></ulink>
.
</para>
<para>
To enable FFI support in GHC, give the
<option>
-fffi
</option><indexterm><primary><option>
-fffi
</option></primary>
</indexterm>
flag, or
the
<option>
-fglasgow-exts
</option><indexterm><primary><option>
-fglasgow-exts
</option></primary>
</indexterm>
flag which implies
<option>
-fffi
</option>
.
</para>
<para>
The FFI support in GHC diverges from the Addendum in the following ways:
</para>
<itemizedlist>
<listitem>
...
...
@@ -18,8 +25,7 @@
<listitem>
<para>
GHC implements a number of GHC-specific extensions to the FFI
Addendum. These extensions are described in
<xref
linkend=
"sec-ffi-ghcexts"
/>
, but please note that programs using
Addendum. These extensions are described in
<xref
linkend=
"sec-ffi-ghcexts"
/>
, but please note that programs using
these features are not portable. Hence, these features should be
avoided where possible.
</para>
</listitem>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment