[Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript compiler

Ryan Yates fryguybob at gmail.com
Wed Oct 27 09:25:31 EDT 2010


I ran into a problem with line 31 of examples/rts-common.js when running on
Chrome:
>    var word16addCarry = function function(a, b, c) {

Shouldn't that be:
>    var word16addCarry = function(a, b, c) {

With that change it runs fine for me (GHC 6.12.3).  Chrome also wasn't happy
loading from the local file system (Cross origin requests are only supported
for HTTP), so I just used happstack to test:

>    import Happstack.Server
>    main = simpleHTTP nullConf (fileServe [] "./")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101027/bb9555b6/attachment.html


More information about the Haskell-Cafe mailing list