I've recently came across ghcjs haskell-to-javascript compiler, but I am not sure how "ready" it is. It seems to have little activity over the last year.
Is there an equivalent to GWT in Haskell?
Also, more of a discussion question:do you think there will be a gwt haskell equivalent? Why or why not?
You can use GHCJS to compile Haskell code to JavaScript. It is a fork of GHC and supports pretty much everything GHC supports including TemplateHaskell. Most libraries on hackage work just fine as long as they do not have dependencies on C libraries. The compile times are slow and the resulting .
GHCJS is a Haskell to JavaScript compiler that uses the GHC API.
The compiler (written in Haskell), translates Haskell to C, assembly, LLVM bitcode and other formats. The strategy it uses is described best here: Implementing lazy functional languages on stock hardware:the Spineless Tagless G-machine.
There are several such compilers which can be used right away.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With