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

Guide to compile dhall to JS backend, wasm backend and GHCJS #2600

Open
flip111 opened this issue Jul 13, 2024 · 1 comment
Open

Guide to compile dhall to JS backend, wasm backend and GHCJS #2600

flip111 opened this issue Jul 13, 2024 · 1 comment

Comments

@flip111
Copy link

flip111 commented Jul 13, 2024

Could anyone provide some hints on how to get dhall compiled into a javascript library? And how would one get an API specification for this library? AFAIK there are three possibly targets, the older GHCJS, the new javascript backend 1 and a WASM backend. I would like to try all three

@flip111 flip111 changed the title Guide to compile dhall to JS backend and GHCJS Guide to compile dhall to JS backend, wasm backend and GHCJS Jul 13, 2024
@Gabriella439
Copy link
Collaborator

The Dhall JavaScript code that powers https://dhall-lang.org is built using the older GHCJS and that's using Nixpkgs's support for GHCJS. However, I haven't tried either the WASM backend or the new JavaScript backend.

Also, even the older GHCJS build is deprecated (it's currently disabled in master), although I've been working on re-enabling it. The dhall-lang repository is pinned to an older version of this repository for building the JavaScript code.

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

2 participants