React bindings for GHCJS
ghcjs -iexamples/ -isrc/ examples/Main.hs
cp examples/index.html examples/Main.jsexe/
$ haddock React --optghc=-isrc -h
If you have trouble with cabal install --ghcjs
, you may instead try:
$ rm -r dist/
$ ghcjs Setup.hs
$ node Setup.jsexe/all.js clean
$ node Setup.jsexe/all.js configure --user --ghcjs
$ node Setup.jsexe/all.js build
$ node Setup.jsexe/all.js copy
$ node Setup.jsexe/all.js register
$ node Setup.jsexe/all.js haddock