[Haskell-cafe] cabal-install sandbox with happy and alex

Badi' Abdul-Wahid abdulwahidc at gmail.com
Thu Oct 31 15:59:16 UTC 2013


I've run into difficulty building happy and alex using the sandbox feature
of cabal-install
Installation of dependencies succeeds but both happy and alex fail with:

    setup: The program happy is required but it could not be found

My workaround is to use the --only-dependencies flag, install the
dependencies, and manually install the packages.

This is on Mac OS X 10.8.4 with GHC 7.6.3.

I've copied the steps demonstrating the problem on lpaste:
Summary to reproduce: cabal sandbox init; cabal install happy alex

Below is the script for my workaround.

[0 :)] badi at olorin /tmp/sb
~> cat sandbox-install.sh
#!/usr/bin/env bash


cabal sandbox init
cabal install --only-dependencies $packages

for p in $packages; do
    cabal unpack $p
    pushd $p-*
    cabal sandbox --sandbox ../.cabal-sandbox init
    cabal configure
    cabal build
    runhaskell Setup.lhs install


Badi' Abdul-Wahid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131031/d1691a21/attachment.html>

More information about the Haskell-Cafe mailing list