For development we use the latest upstream versions:
- Remove the standard
haskell-platform
andghc-*
RPMs if you have them installed - Download version 8.4.2 of the generic Haskell Platform distribution from https://www.haskell.org/platform/linux.html#linux-generic
$ tar -xzvf haskell-platform-8.4.2-unknown-posix--minimal-x86_64.tar.gz
$ sudo ./install-haskell-platform.sh
- Add
/usr/local/bin
to your PATH if not already there! - Install build dependencies:
# dnf -y install xz-devel zlib-devel glib2-devel gobject-introspection-devel ostree-devel
NOTE: On RHEL 7 ostree-devel
is part of the Atomic Host product!
cabal
is used to install and manage Haskell dependencies from upstream.
$ cd src/ && cabal sandbox init && cabal install
$ cabal sandbox init
$ cabal install --dependencies-only --enable-tests
$ cabal test
Running 1 test suites...
Test suite tests: RUNNING...
Test suite tests: PASS
Test suite logged to: dist/test/db-0.1.0.0-test-db.log
1 of 1 test suites (1 of 1 test cases) passed.
$ cabal sandbox init
$ cabal install --enable-tests --enable-coverage
$ cabal test
$ firefox ./dist/hpc/vanilla/tix/*/hpc_index.html