Surprised to see that no one has mentioned GHCJS <https://github.com/ghcjs/ghcjs> still.
I have used it[0] a year ago and despite my shallow understanding of Haskell, I have managed to port my CLI app to Haskell fairly easily!
I'm curious how they solve garbage-collection, since last time I checked WebAssembly doesn't yet support that?
Client-side pandoc would actually be reaaaal interesting
Another 'Haskell to WebAssembly' project:
⸮ ϱninnɒd wobɒʜƨ ƨi ƨwɘn ɿɘʞɔɒʜ
See also webghc which has an alternative strategy to writing a new RTS and code generator. They are cross compiling to wasm via llvm. https://webghc.github.io/2019/01/18/state-of-webghc-january-...