[question] Can't build with cabal using the JS backend
I'm trying to build a project using the JS backend in GHC 9.6 (or 9.7.20230406). I'm getting GHC from nixpkgs (
pkgsCross.ghcjs.haskell.compiler.ghc96) and running this command:
This eventually fails to build
ghcjs_HOST_OS is not set, and this file relies on it. Setting
--ghc-option='-Dghcjs_HOST_OS' doesn't change anything.
So I tried this instead:
Which now complains that it can't determine the version of
How do I use the new JS backend with Cabal?