Open jneira opened 5 years ago
I like the GHCJS approach. It's a bit implicit, but I think it's OK. The only issue I can see is that a lot of times you need to replace Ptr
with a Java object and the actual type signatures change. In the other cases it would be OK.
Description
foreign import ccall
so we have to patch the code replacing them withforeign import java
ghcjs
supports them converting the ccall calling a javascript function using a name convention: https://github.com/ghcjs/ghcjs/blob/master/doc/foreign-function-interface.md#emulating-c-code-with-foreign-import-ccalljava-sources
with the appropiate classes and methodsExpected Behavior
foreign import ccall
generating java calls to class eta.Actual Behavior
foreign import ccall