Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: direct support for ccalls (like ghcjs) #966

Open
jneira opened this issue May 23, 2019 · 1 comment
Open

Feature request: direct support for ccalls (like ghcjs) #966

jneira opened this issue May 23, 2019 · 1 comment

Comments

@jneira
Copy link
Collaborator

jneira commented May 23, 2019

Description

Expected Behavior

  • eta should translate foreign import ccall generating java calls to class eta.. ( f.e. eta.unix.SystemPosixFiles) and method (rename)
  • maybe we could (de)activate the behaviour with a flag
  • maybe we could make a tool (integrated in eta/etlas?) to generate auto java stubs with all ccalls of a package using this name convention

Actual Behavior

  • eta rejects foreign import ccall
@rahulmutt
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants