haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

GHC 9.6, Wasm, and GHCJS

Open dhess opened this issue 2 years ago • 7 comments

Hi! We've just about managed to get our haskell.nix project building with GHC 9.6.2, and now we'd like to build a Wasm target, or at least GHCJS.

From what I can tell, there's no support for cross-compiling to the 9.6 wasm32-wasi "triple." Is there a plan for that?

And for GHCJS, does one use the documented p.projectCross.ghcjs.hsPkgs magic and it will do the right thing with GHC 9.6.2, or does the existing projectCross GHCJS support only work with the old standalone GHCJS compilers?

dhess avatar Aug 16 '23 16:08 dhess

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 14 '23 17:12 stale[bot]

Bump. Any imminent plans for this?

dhess avatar Dec 14 '23 17:12 dhess

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 12 '24 21:04 stale[bot]

This will likely happen once we e fixed all the windows issues and are able to update nixpkgs pins again.

Nixpkgs update to binutils 2.36+ (and now the inability to still use 2.35 trivially) has thrown in a pretty bad wrench 😒

(Same with adding the riscv backend).

angerman avatar Apr 12 '24 23:04 angerman

We're using https://gitlab.haskell.org/ghc/ghc-wasm-meta/ to build our Wasm targets for now. It's nice that it provides a flake for the compiler and tools, but obviously we'd like to take advantage of the haskell.nix ecosystem, as well.

dhess avatar Apr 13 '24 11:04 dhess

Any plans to implement this once https://github.com/input-output-hk/haskell.nix/pull/2156 is merged?

dhess avatar Jul 12 '24 10:07 dhess

Hi. I just stumbled upon this now. It seems that the PR above has been merged. I'm also targeting WASM and would like support for it :)

ss-twieland avatar Sep 22 '24 11:09 ss-twieland