INSTALL
=======

== REQUIREMENTS

- GHC >= 7.4
- cabal-install >= 0.14

=== Under Debian

----
% sudo apt-get install ghc cabal-install
----

== DOWNLOAD

=== With Git

----
% git clone git://git.autogeree.net/hcompta
% cd hcompta
----

=== With any HTTP client

----
% curl -o hcompta.tar.gz 'http://git.autogeree.net/?p=hcompta.git;a=snapshot;sf=tgz;h=HEAD'
% tar xvf hcompta.tar.gz
% cd hcompta-HEAD-*
----

== COMPILE

----
% cabal update
% (cd lib && cabal install --enable-tests)
% (cd cli && cabal install --enable-tests)
% (cd web && cabal install --enable-tests)
----

== TEST

----
% (cd lib && cabal test --show-details=always)
% (cd cli && cabal test --show-details=always)
% (cd web && cabal test --show-details=always)
----

== DOCUMENT

----
% (cd lib && cabal haddock --hyperlink-source)
% (cd cli && cabal haddock --hyperlink-source)
% (cd web && cabal haddock --hyperlink-source)
----