I can export simple haskell functions through FFI containing standard data types. However, I do not know how to export a function that uses a data type other than standard data types.
eg.
data SomeType a = SomeType a
data SomeOtherType b = SomeOtherType b
doSomething:: SomeType a -> SomeOtherType b
How can I export the doSomething function?
Existing documents speak of very simple examples.
source
share