Next:
Introduction
A Guide to Haskell's Foreign Function Interface
Alastair Reid
Reid Consulting (UK) Limited
alastair (at) haskell-consulting.com
Introduction
Standards and Libraries
Compilers
Compiling and Linking
GHC
Hugs
NHC98
Common Problems
Are Ptr values deallocated?
How to call C++ from the FFI
Passing a file descriptor to C
How to model inheritance in Haskell's typesystem
Purity and using unsafePerformIO
Opaque Types
Macros
Exception Handling
Accessing Fields of a Struct
Marshalling (and when not to)
Reentrancy
Finalizers
Using Finalizers with Scarce Resources
FFI Preprocessors
Greencard
GHC
Hugs
NHC
C to Haskell
GHC
Hugs
NHC
HSC2HS
HDirect
QForeign
KDirect
Comparision of Tools
Portability Between Compilers
Portability Of Generated Files
Ease of Use
Calling Haskell from C
Interfacing to languages other than C
C++
FORTRAN
About this document ...
Alastair Reid 2005-03-31