From 8cb77a2a931d1dcc4dce4d0bd009d5e5fe8e7f23 Mon Sep 17 00:00:00 2001 From: Adrian Herrera Date: Thu, 7 Apr 2016 22:27:38 +1000 Subject: [PATCH] Fixed Makefile build step for Haskell bindings --- bindings/Makefile | 2 +- bindings/haskell/README.TXT | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bindings/Makefile b/bindings/Makefile index 2e29e365..d5d58c5d 100644 --- a/bindings/Makefile +++ b/bindings/Makefile @@ -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 diff --git a/bindings/haskell/README.TXT b/bindings/haskell/README.TXT index dc629c95..b5cdccb8 100644 --- a/bindings/haskell/README.TXT +++ b/bindings/haskell/README.TXT @@ -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.