Thank you for your response :)
Could you please answer one additional question - why you, while creating GHCJS didn't base on emscripten? Why haven't you patched it and created custom solution?
Is GHCJS "production ready"? Also - Can I use GHCJS to compile big projects (like GHC or GHCI) to Javascript?
When you mentioned the file sizes I thought it would be good to further introduce what we are trying to do.
We want to be able to send a haskell code to a server to compile it and return the resulted JS to user as a compiled library. We want users to be able to connect these compiled functions together to get some interactive results.
for example: user is creating 2 functions (pseudocode): a(x) and b(x). They are send to server and compiled to JS. Then in an online tool user is connecting (visually with lines) a data (lets say a list of ints) [] -> a -> b. While connecting it we want this tool to "interpret" such connections and visualise the data on each step - so we want to have some kind of "runtime" or "interpreter" on client side.