... | ... | @@ -145,6 +145,10 @@ emconfigure ./configure --target=js-unknown-ghcjs |
|
|
```
|
|
|
it sets the appropriate variables for you, configures using `emconfigure`, and passes the right flags to `hadrian`. Notice that it calls `build-stack`, which you may want to change to simply `build` if you are not using `stack`.
|
|
|
|
|
|
## Further Reading and Demos
|
|
|
- [Say Hello World to JS](https://engineering.iog.io/2022-12-13-ghc-js-backend-merged)
|
|
|
- [Run Haskell to JS code in the browser](https://engineering.iog.io/2023-01-24-javascript-browser-tutorial)
|
|
|
|
|
|
## FAQ
|
|
|
|
|
|
### How does the JS backend interact with the on-going plans to make GHC runtime retargetable? Is the current plan for JS to merge before runtime retargetability, therefore requiring the user to build a new compiler to use the backend?
|
... | ... | |