Besides, Cabal and ghc-pkg won't know anything about backend-specific output files: Unless you manage to stuff all the wasm32 code into the existing .o and .a files, the result wouldn't be copied to the right place.
Oct 9 2018
Oct 8 2018
@luite There isn't a discussion other than the ghc-devs thread yet, I'll create a reddit thread to collect more opinions later.
@mpickering The Hsc there indicates there's a HscEnv in scope available for use.
Sep 6 2018
Dev of asterius here. This patch already works in asterius, allowing using a ghc built with integer-gmp/tables-next-to-code to compile Haskell to WebAssembly with integer-simple/no-tables-next-to-code. Can we proceed with merging this differential before it gets bit-rotten? Anything I can offer here? Thank you.