Luite
Via HWN I read your GHCJS post this morning. Great work.
It’s silly that you should need to patch GHC. One alternative is to absorb your patch, or a successor. I think it mostly just extends the FFI and target types with new cases. The patch doesn’t actually include any JS generation, so I’m far from sure how that happens.
But it would be even better to make it easier to people to add new backends without modifying GHC, via some kind of plugin interface.