[Haskell-cafe] How to install newest ghcjs-base

Luite Stegeman stegeman at gmail.com
Thu Nov 5 21:29:40 UTC 2015

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

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.


On Thu, Nov 5, 2015 at 6:57 PM Arie Peterson <ariep at xs4all.nl> 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
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151105/29e062ca/attachment.html>

More information about the Haskell-Cafe mailing list