Foreign Function Interface
Introduction
The Foreign Function Interface (FFI) allows you to link Haskell programs to programs written in another language.
Links
Select one of the following links for more information:
- FFI Introduction
- GHC manual: Writing Haskell interfaces to C code: hsc2hs
- haskell-ffi-tutorial at GitHub
- The official description: chapters 8 and 24 to 37 of The Haskell 2010 Language Report (a draft: The Haskell 98 Foreign Function Interface 1.0. An Addendum to the Haskell 98 Report)
- FFI cook book
- FFI complete examples
- GHC/Using the FFI
- Tackling the awkward squad
- fficxx, a Haskell-C++ Foreign Function Interface Generator
- Applications and libraries/Interfacing other languages
- Use another language to call a function; Haskell
- TABI a typeful tagged cross-language calling convention