Skip to content

Add JavaScript backend (#21078)

Sylvain Henry requested to merge wip/javascript-backend into master

This MR adds a JS backend to GHC, adapted from GHCJS.

Important caveat: not every optimization has been ported from GHCJS yet. We prioritized fixing issues due to the update from GHC 8.10 (which GHCJS was using) and other correctness issues found by the testsuite. Similarly some features aren't yet available, especially Template-Haskell. We expect to work on missing features and performance after this initial merge. Status of the JS backend is tracked in #21078 (closed).

TODO before merging this:

Edited by Sylvain Henry

Merge request reports