2016-04-05 23:21:36 +00:00
|
|
|
This documentation explains how to install Haskell binding for Unicorn
|
|
|
|
from source.
|
|
|
|
|
|
|
|
|
|
|
|
0. Install the core engine as dependency
|
|
|
|
|
|
|
|
Follow README in the root directory to compile & install the core.
|
|
|
|
|
|
|
|
On *nix, this can simply be done by (project root directory):
|
|
|
|
|
|
|
|
$ sudo ./make.sh install
|
|
|
|
|
|
|
|
|
|
|
|
1. Change directories into the Haskell bindings, build and install
|
|
|
|
|
|
|
|
$ cd bindings/haskell
|
2016-04-07 12:27:38 +00:00
|
|
|
$ cabal install --dependencies-only
|
|
|
|
$ cabal configure
|
2016-04-05 23:21:36 +00:00
|
|
|
$ cabal build
|
|
|
|
$ cabal install
|
|
|
|
|
2016-04-07 12:27:38 +00:00
|
|
|
If you are installing into a sandbox, run `cabal sandbox init` before
|
|
|
|
installing Unicorn's dependencies.
|
|
|
|
|
|
|
|
If the build fails, try installing c2hs manually via `cabal install c2hs` (note
|
|
|
|
that this is a known problem). If you are NOT using a sandbox, make sure that
|
|
|
|
`$HOME/.cabal/bin` is on your PATH.
|