Closed zhfnjust closed 2 years ago
There is no generic way -- you need to tell inline-c how to marshal Haskell types into C types. In this case you'll probably want to marshal the different parts into different corresponding C types. See readme for more info (e.g. how it works for vectors).
more example about marshal ?
How to pass a data type from haskell into
inline-c
for processing.now I need to pass an array of
OpCode
from haskell intoinline-c
.