[Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript
compiler
Victor Nazarov
asviraspossible at gmail.com
Wed Oct 27 10:23:14 EDT 2010
On Wed, Oct 27, 2010 at 5:25 PM, Ryan Yates <fryguybob at gmail.com> wrote:
> 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) {
Yes, that's my fault. I'll fix it.
> 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 [] "./")
>
>
I wasn't able to run it in Chrome without dedicated HTTP-server, seems
like it is the only way...
--
Victor Nazarov
More information about the Haskell-Cafe
mailing list