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