The latest GHCJS Hello World (http://ghcjs.github.com/bin/ghcjs-hello.jsexe) 
can be built with regular GHC and Gtk2Hs.  With something like....

sudo apt-get install libwebkitgtk-dev
darcs get http://patch-tag.com/r/hamish/webkit
cd webkit
cabal install
cd ..
git clone https://github.com/ghcjs/ghcjs-dom.git
cd ghcjs-dom
cabal install
cd ..
git clone https://github.com/ghcjs/ghcjs-examples.git
cd ghcjs-examples/webkit-sodium
cabal install
cd ../ghcjs-hello
cabal install
ghcjs-hello

I would like to be able to make it so that people can just type...

sudo apt-get install libwebkitgtk-dev
cabal install ghcjs-hello
ghcjs-hello

Can we add the bindings as they are to Hackage?  They are actually mostly 
generated from the WebKit IDL files using 
https://github.com/ghcjs/domconv-webkit so we have a few options...
1) Add the generated files as they are
2) Include the generator and IDL files and build them during the install
3) Include the generator and look for the IDL files

I think 3) is out as even the libwebkitgtk-dev does not include the IDL files, 
they are only in the source.  They could easily change in the future and break 
the build.

I think option 2) is a lot of work for little benefit at this point.  Also it 
adds a whole bunch of things to go wrong during the build.

My preference is for option 1) and we can look at option 2) in the future if we 
need to (I know it kind of sucks to have generated files in the repo).

Hamish

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to