well-typed / hs-bindgen

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

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

Open edsko opened 4 months ago

edsko commented 4 months ago

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

edsko commented 3 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.