Skip to content

Installing and building HQL

Johan Astborg edited this page Jan 31, 2014 · 3 revisions

This section is a guide for how to obtain the source of HQL and build it, and run the test suit. Follow the instructions below, the commands are intended to be copy-paste friendly.

First you have to install Cabal on your machine, so please refer to your system specific documentation. Second, follow the steps below (sometimes you'll have to install the dependencies yourself, they are found in HQL.cabal).

Obtaing the HQL source:

git clone https://github.com/HIPERFIT/HQL.git

Updating Cabal and installing dependencies

  1. cabal update
  2. cabal install quickcheck2
  3. cabal install test-framework
  4. cabal install test-framework-quickcheck2

Building using Cabal

  1. cabal configure --enable-tests
  2. cabal build
  3. cabal test

Testing using Cabal

  1. cabal build
  2. cabal test

Building the Haddock Documentation

  1. cabal haddock
  2. Open: /dist/doc/html/HQL/index.html