It is possible to develop GHCJS applications with Cabal and cabal-install
,
just as if one were using GHC. Unfortunately, few people do that, and hence a
number of key packages are note being uploaded to Hackage. Until this is fixed,
this repository provides a cabal repository with these packages.
It includes:
- nothing currently life is good. Go and use Hackage directly.
It used to include the following packages, which have since been uploaded to hackage in a decent version:
reflex
reflex-dom
andreflex-dom-core
.ghcjs-base
Add this to your ~/.cabal/config
:
repository ghcjs-overlay
url: http://hackage-ghcjs-overlay.nomeata.de/
secure: True
root-keys:
key-threshold: 0
If you use new-style cabal commands, you can also add it to your
cabal.project
, but you will have to use cabal new-update
instead of cabal update
.
Yes you can! See https://github.com/nomeata/ghcjs2gh-pages/ for a .travis.yml
file that builds your GHCJS program using this repo (and automatically deploys
your GHCJS program to Github Pages).
Manually, so far: I pulled the github repositories, appended the current date
to the version, ran cabal sdist
to get source tarballs, ran
$ hackage-repo-tool create-keys --keys keys
$ mkdir package/
$ mv .../**/*.tar.gz package/
$ hackage-repo-tool bootstrap --keys keys/ --repo .
and published this on Github Pages.
Some automation might be nice...
No, not at the moment.
Old related bugs
This make-shift service is provided by Joachim Breitner ([email protected]). It is hosted at https://github.com/nomeata/hackage-ghcjs-overlay where you can report issues.