If so, then I could let people play around with a project of mine by changing its (Haskell) configuration: recompiling it in the browser, and then rerunning it in the browser. I don't care about speed. I just want to be able to demo a hard-to-setup fundamentally-desktop project in the browser. So possible new users can see if they like it, within seconds and without setup.
How cool would that be!
from what I've read, GHCJS compiles STG into JavaScript. it says it uses the GHC API, so we should be able to compile that into JavaScript too, like any other Haskell library. (right?) Is it true that, while the GHC runtime has a lot of C, the compiler itself is pure Haskell?
so:
- Can GHCJS compile itself into JavaScript?
- Can Haste compile itself into JavaScript?
- Have either of these been done? (is that how http://haste-lang.org/try/ works? It seems to need a network.)