Foreign Function Interface: Difference between revisions
(Added a link to the GHC manual) |
(Added a link to the tabi package) |
||
Line 16: | Line 16: | ||
* Blog article: [http://blog.ezyang.com/2010/07/safety-first-ffi-and-threading/ Safety first: FFI and threading] | * Blog article: [http://blog.ezyang.com/2010/07/safety-first-ffi-and-threading/ Safety first: FFI and threading] | ||
* [http://rosettacode.org/wiki/Use_another_language_to_call_a_function#Haskell Use another language to call a function; Haskell] | * [http://rosettacode.org/wiki/Use_another_language_to_call_a_function#Haskell Use another language to call a function; Haskell] | ||
* [https://code.google.com/p/tabi/ TABI] a typeful tagged cross-language calling convention |
Revision as of 20:18, 23 May 2013
The Foreign Function Interface (FFI) allows you to link Haskell programs to programs written in another language.
Select one of the following links for more information:
- FFI Introduction
- GHC manual: Writing Haskell interfaces to C code: hsc2hs
- 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
- Blog article: Simple demonstration of Haskell FFI
- Blog article: C and Haskell sitting in a tree…
- Applications and libraries/Interfacing other languages
- Blog article: C2HS example: To save other people frustration
- Cxx foreign function interface; how to link to a C++ library
- Blog article: Safety first: FFI and threading
- Use another language to call a function; Haskell
- TABI a typeful tagged cross-language calling convention