Closed Magicloud closed 5 years ago
Right now, I still have to write Haskell code with call or unexposed fun to wrap C functions that take array parameter. The structure of them are so similar, I think it is possible to make a c2hs syntax. Is it possible?
call
fun
Do you mean special syntax for something like void foo(bar* barArray, int barLen, ...)?
void foo(bar* barArray, int barLen, ...)
Yes.
Sorry. My mistake. Just learnt what & actually means. So this does not require a syntax to work.
&
Right now, I still have to write Haskell code with
call
or unexposedfun
to wrap C functions that take array parameter. The structure of them are so similar, I think it is possible to make a c2hs syntax. Is it possible?