Fixed Makefile build step for Haskell bindings

This commit is contained in:
Adrian Herrera 2016-04-07 22:27:38 +10:00
parent 431035b335
commit 8cb77a2a93
2 changed files with 9 additions and 3 deletions

View File

@ -18,7 +18,7 @@ all:
cd go && $(MAKE) gen_const
cd java && $(MAKE) gen_const
python const_generator.py dotnet
cd haskell && cabal configure && cabal build
cd haskell && cabal install --dependencies-only && cabal configure && cabal build
samples: expected python

View File

@ -14,8 +14,14 @@ from source.
1. Change directories into the Haskell bindings, build and install
$ cd bindings/haskell
$ cabal install --dependencies-only
$ cabal configure
$ cabal build
$ cabal install
If the build fails, try installing c2hs manually (cabal install c2hs) and make
sure that $HOME/.cabal/bin is on your PATH.
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.