How to install newest ghcjs-base

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to install newest ghcjs-base

Arie Peterson
5 days ago a change [1] was made to the ghcjs-base library. How can one obtain
a ghcjs that incorporates such a recent version of ghcjs-base?

I installed ghcjs from git master yesterday, and installed the boot libraries
using "ghcjs-boot --dev". However, I still get "Module
‘JavaScript.Web.MessageEvent’ does not export ‘getData’", so apparently my
ghcjs-base lags behind somehow.

What determines the version of ghcjs-base that is installed?


Regards,

Arie


[1] <https://github.com/ghcjs/ghcjs-base/commit/e827ded07053a3281c50ee52b3e3ebd38286055e>

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: How to install newest ghcjs-base

Luite Stegeman
That depends on how you install GHCJS. If you do a release build, starting from a ghcjs-x.y.z.tar.gz sdist (there are some prereleases out there to be used with stack), then all libraries are taken from this archive.

If you do a development build (boot with --dev), then the ghcjs-boot program clones the ghcjs-boot repository, which contains ghcjs-base as a submodule. The submodule determines exactly which ghcjs-base version you get.

I've been working on the ghcjs-base library recently, but since I had no way to automatically test things like WebSocket and XMLHttpRequest, much of that code has only seen rather spotty testing. I've now updated the GHCJS testsuite to support automated browser testing through Selenium, so I'll be adding tests and fixing things soon, and bump the submodule when I feel reasonably confident that it works.

However, unlike ghcjs-prim, ghcjs-base is a fairly normal package that you can install in your user package database or in a sandbox (there are still lots of low-level implementation details in there, so don't expect long term compiler compatibility, but bugfix updates should be ok). So just clone a copy and install it if you want to help test (or fix) the changes.

luite

On Thu, Nov 5, 2015 at 6:57 PM Arie Peterson <[hidden email]> wrote:
5 days ago a change [1] was made to the ghcjs-base library. How can one obtain
a ghcjs that incorporates such a recent version of ghcjs-base?

I installed ghcjs from git master yesterday, and installed the boot libraries
using "ghcjs-boot --dev". However, I still get "Module
‘JavaScript.Web.MessageEvent’ does not export ‘getData’", so apparently my
ghcjs-base lags behind somehow.

What determines the version of ghcjs-base that is installed?


Regards,

Arie


[1] <https://github.com/ghcjs/ghcjs-base/commit/e827ded07053a3281c50ee52b3e3ebd38286055e>

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe