[Haskell-cafe] [ANN] Haskell FFI Tutorial

Alex Petrov oleksandr.petrov at gmail.com
Sat Nov 8 15:54:06 UTC 2014


Hi Everyone,

I've recently started working on Haskell FFI Tutorial [1]. The repository already 
contains code that explains how to:

  * (expressively) represent C `struct` in Haskell code
  * call C code from Haskell
  * call Haskell code from C
  * operate on nested `struct`s 
  * operate on `struct` arrays
  * decode `unions` 
  * read and write C fixed-length strings and Pointer-type Strings
  * how to import functions from, for example, stdlib

I'm still working on more story-like writeups, but the first one (about how to call Haskell 
from C) is already available [2].

If you have any feedback / comments / questions, know how to improve it or 
would like to see more things covered, just ping me. 

Thanks

[1] https://github.com/ifesdjeen/haskell-ffi-tutorial
[2] https://github.com/ifesdjeen/haskell-ffi-tutorial#calling-haskell-from-c

-- 

Alex
https://twitter.com/ifesdjeen
http://clojurewerkz.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141108/bafaa089/attachment.html>


More information about the Haskell-Cafe mailing list