well-typed / hs-bindgen

Automatically generate Haskell bindings from C header files
18 stars 0 forks source link

Support functions that accept or return `struct`s by value #37

Open edsko opened 2 months ago

edsko commented 2 months ago

This is (currently) not directly possible with Haskell's FFI interface, so we'll need to generate wrappers.

edsko commented 2 months ago

Tracking support for function pointers to functions that accept or return structs by value separately, as this is especially tricky: https://github.com/well-typed/hs-bindgen/issues/81.