After you have installed ghc and cabal, you will need to install the haste compiler as follows (from http://haste-lang.org/downloads/ ):
$ cabal update $ cabal install haste-compiler $ haste-boot
After that, "hastec" (acceleration compiler) should be available for haskell compilation in javascript. In addition, "haste-cabal" (a high-speed version of cabal) should be available for installation to install libraries, such as acceleration, for use in your programs.
The readme file for haste-perch ( https://github.com/agocorona/haste-perch ) contains instructions for setting the acceleration. These instructions use haste-inst to set the rush, but haste-inst is deprecated (and no longer exists). Use the instructions below to set the acceleration:
>git clone http://github.com/agocorona/haste-perch.git >cd haste-perch >haste-cabal install
I was able to install haste-perch and successfully build the example with which it came.
I also tried to build hplayground, but ran into compilation problems that looked like they were due to code not being updated to use 0.5 acceleration. For example, "OnClick" was a valid identifier in earlier versions of the rush, but no more:
src/Haste/HPlay/View.hs:820:45: Not in scope: data constructor 'OnClick' Perhaps you meant 'Click' (line 1017)
source share