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

Support for alternative compilers (ghcjs, eta) #82

Closed
jneira opened this issue Oct 29, 2019 · 2 comments
Closed

Support for alternative compilers (ghcjs, eta) #82

jneira opened this issue Oct 29, 2019 · 2 comments

Comments

@jneira
Copy link
Member

jneira commented Oct 29, 2019

Hi, it would be great that hie-bios could work with other compilers than ghc, concretely, the ghc forks that compile to another targets than native code: eta for jvm bytecode anf ghcjs to javascript.

Not sure if it could be done without changing too much the actual code but i hope it is possible, being both forks of ghc. The tool to start a repl with ghcjs could be cabal itself and for eta the specific fork of cabal, etlas.

As projects usually could be compiled by ghc and the other ones probably a explicit cradle config would be needed. In the case of eta the presence of the specific config file <project>.etlas or etlas.dhall could be used for that.

That could open the use of those compilers in the tools using hie-bios.

@jneira
Copy link
Member Author

jneira commented Nov 7, 2019

After investigating a little bit:

  • The extraction of ghc call params could be relatively easy to do for eta/etlas (simply replacing cabal with etlas in the call and the wrapper)
  • Extract the params for ghcjs seems to be difficult cause there is no ghcjsi and cabal dont ever call ghcjs with cabal --ghcjs v2-repl
  • The code under src/hie/Bios/ghc should be updated (or new code under src/hie/Bios/eta and src/hie/Bios/ghcjs) to call eta/ghcjs with cpp conditions and the package would depend on eta and ghcjs as dependencies

So maybe that would be out of scope of hie-bios... 😟

@jneira
Copy link
Member Author

jneira commented Nov 8, 2019

So maybe that would be out of scope of hie-bios... 😟

definitely it is so closing the issue
maybe if i have time i will add eta support in a fork

@jneira jneira closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant