<div dir="ltr">Hi<div><br></div><div>I've run into difficulty building happy and alex using the sandbox feature of cabal-install 1.18.0.2.</div><div>Installation of dependencies succeeds but both happy and alex fail with:</div>

<div><br></div><div>    setup: The program happy is required but it could not be found<br></div><div><br></div><div>My workaround is to use the --only-dependencies flag, install the dependencies, and manually install the packages.</div>

<div><br></div><div>This is on Mac OS X 10.8.4 with GHC 7.6.3.<br></div><div><br></div><div>I've copied the steps demonstrating the problem on lpaste:</div><div>    <a href="http://lpaste.net/95027">http://lpaste.net/95027</a></div>

<div>Summary to reproduce: cabal sandbox init; cabal install happy alex</div><div><br></div><div>Below is the script for my workaround.</div><div><br></div><div><div>[0 :)] badi@olorin /tmp/sb</div><div>~> cat sandbox-install.sh</div>

<div>#!/usr/bin/env bash</div><div><br></div><div>packages="$@"</div><div><br></div><div>cabal sandbox init</div><div>cabal install --only-dependencies $packages</div><div><br></div><div>for p in $packages; do</div>

<div>    cabal unpack $p</div><div>    pushd $p-*</div><div>    cabal sandbox --sandbox ../.cabal-sandbox init</div><div>    cabal configure</div><div>    cabal build</div><div>    runhaskell Setup.lhs install</div><div>
    popd</div>
<div>done</div></div><div><div><br></div>-- <br><br>Badi' Abdul-Wahid
</div></div>