CONTENT="Modular DocBook HTML Stylesheet Version 1.64
GHC (mostly) conforms to the Haskell 98 Foreign Function Interface Addendum 1.0, whose definition is available from http://haskell.org/. The FFI support in GHC diverges from the Addendum in the following ways:
The FFI libraries are documented in the accompanying library documentation; see for example the Foreign module.
The FFI features that are described in this section are specific to GHC. Avoid them where possible to not compromise the portability of the resulting code.
The types ByteArray and MutableByteArray may be used as basic foreign types (see FFI Addendum, Section 3.2). In C land, they map to (char *).
The following unboxed types may be used as basic foreign types (see FFI Addendum, Section 3.2): Int#, Word#, Char#, Float#, Double#, Addr#, StablePtr# a, MutableByteArray#, ForeignObj#, and ByteArray#.