Installing the Haste compiler
From pre-built packages
The easiest way to install Haste is to use our pre-booted binary packages of Haste 0.6.0.0. These packages require a 64 bit OS and a somewhat recent (GHC 7.6+) version of GHC installed and visible on your
$PATH. The installed GHC version does not need to correspond to the version of GHC used to build Haste, however. Get the latest Haskell Platform and the Haste package for your system and you’re good to go.
- Debian (MD5: b233ad34e4d58df117726077b8543a0e)
- Generic Linux (MD5: a8a8d342fded6c85650a00b7cd325194)
- Windows installer (MD5: 278410eb9064ed269d837f6fdf557e04)
- Windows portable (MD5: 999e04175de499733a7b2739cd1e39fe)
- OSX (will be available soon) (MD5: N/A)
The second easiest way to get Haste is to install it from Hackage. Make sure you have a recent version of the Haskell Platform installed, then run the following in a terminal:
$ cabal update $ cabal install haste-compiler $ haste-boot
If you get an error about
haste-boot not being found, you will need to add
~/.cabal/bin to your
$PATH. If you are unsure about how to do this, please consult
your OS documentation Google.
If you get errors about
strip or about library files not being found, please check that your
~/.cabal/config does not contain the line
shared: True. In general, it is highly recommended that you use the default cabal configuration when booting Haste or installing packages with
Another possibility is to install a development version of Haste from GitHub. This requires you to have the Haskell Platform installed, as well as Git.
$ git clone https://github.com/valderman/haste-compiler.git $ cd haste-compiler $ cabal install $ haste-boot --local
For more detailed instructions on installing Haste from source, please refer to the building guide.
To install Haste.App, the part of Haste that lets you write distributed web applications, first install the Haste compiler as described above, as well as a Haskell Platform based on GHC 7.10.
Then, simply install the bundled
haste-prim libraries for vanilla GHC, and
haste-app itself for vanilla GHC as well as for Haste.
$ cabal update && haste-cabal update $ cabal install haste-app && haste-cabal install haste-app