[Haskell-cafe] Can my type be allowed as return type in FFI?
Mauricio
briqueabraque at yahoo.com
Wed Dec 10 05:33:42 EST 2008
Hi,
When I do:
foreign import "nameOfFunction" nameOfFunction
:: IO MyType
I can get a function that return MyType only if
it's a pointer or some of the C* type family. Is
it possible to write a new MyType and make it
allowed as a return type from foreign functions?
Is changing the compiler the only way to do that?
Thanks,
Maurício
More information about the Haskell-Cafe
mailing list