[Haskell-cafe] Re: Can my type be allowed as return type in FFI?

Mauricio briqueabraque at yahoo.com
Thu Dec 11 10:31:53 EST 2008


> Sorry, I'm not talking about how C implements passing structures to
> functions. The Haskell FFI can only bind functions that pass structures
> by pointer, not by value. So if you've got a C function that passes them
> by value then you need to write a wrapper function in C and bind to
> that.

This should definitely be in the documentation somewhere. I
delayed some work for a few weeks with that :)

Thanks a lot for making this clear.

Maurício



More information about the Haskell-Cafe mailing list