Emscripten is meant to translate ANY LLVM IR code to javascript and it should work (as I belive).
I've tried to compile 'hello wrold' Haskell program to JS using Emscripten but I faced a problem, that in generated LLVM IR code there is no C-like main function (
https://github.com/kripken/emscripten/issues/500) so there has to be a runtime library that has to be linked and will run the code - is this "RTS" or something else?
If its RTS I understeand I should compile it to javascript and then provide it as a library to emscripten? Do you have a working RTS js version?
I want to simply try emscripten and see how it performs on such GHC generater LLVM IRs.