The Haskell 98 Foreign Function Interface 1.0:
An Addendum to the Haskell 98 Report

The Haskell 98 Foreign Function Interface (FFI) adds support for invoking code written in other programming languages from Haskell and vice versa. The FFI is designed as a non-intrusive extension to the Haskell 98 standard. Version 1.0 focuses on interaction with C code, but the basic framework can also be used for interfacing to languages other than C.

Version 1.0 of the FFI Addendum is available in the following forms:

System Compliance Status:

  • GHC conforms to the standard.
  • NHC98 conforms to large parts of the standard; see the release notes for details.
  • Hugs conforms to the standard.

Haskell FFI Resources:

  • FFI mailing list: archive & info
  • (NB: this mailing list is now defunct. Please use the main Haskell lists for FFI questions and discussions. I leave the link here for historical purposes.)

• Copyright 2005 Manuel M T Chakravarty • Last modified: Mon Apr 25 20:56:50 EST 2005