
church% hastec --version
0.2.9
church% cat > Hello.hs
module Main where
main = print "Hello world."
church% hastec --opt-google-closure --start=asap Hello.hs
Compiling Main into .
Linking Hello.js
Linking Main
Linking GHC.IO.Handle.Text
Linking Haste.Handle
Linking GHC.Tuple
Linking GHC.Types
Linking GHC.Show
Linking GHC.List
Linking GHC.Base
Linking GHC.IO
Running the Google Closure compiler on Hello.js...
church% nodejs Hello.js
"Hello world."
Hello.js 5750 Bytes (46746 bytes without google closure).
On Wed, Nov 13, 2013 at 3:56 PM, Anton Nikishaev
Ömer Sinan Ağacan
writes: That's great news. I wonder if that means it'll be end for Fay and similar languages?
GHCJS's Hello World is 2.1M worth of javascript (well, that's how it was several month ago, maybe it's better now?). And even google closure compiled with advanced optimizations it's ~500K.
Fay's output is 5K after google-closure-mumbo-jumbo.
2013/11/12 Patrick Mylund Nielsen
: On Tue, Nov 12, 2013 at 12:24 PM, Jeremy Shaw
wrote: On Mon, Nov 11, 2013 at 1:32 PM, Ömer Sinan Ağacan <
omeragacan@gmail.com>
wrote:
I'm aware of this, but when I first tried it a few months ago, it was not easy to use at all. Is it changed now?
Last I heard, Luite was waiting for GHC 7.8 to be released because it contains changes that will allow him to upload ghcjs to hackage and then you will be able to just cabal install it. I could be wrong though.
As far as I know, that's correct.
The easiest way to install and use it right now is using their Vagrant setup:
http://www.reddit.com/r/haskell/comments/1fvv5q/ghcjs_introduction_concurren...
-- lelf
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe