<div dir="ltr">On Thu, Oct 31, 2013 at 1:18 PM, Erik de Castro Lopo <span dir="ltr"><<a href="mailto:mle+hs@mega-nerd.com" target="_blank">mle+hs@mega-nerd.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Badi' Abdul-Wahid wrote:<br>
<br>> I've run into difficulty building happy and alex using the sandbox feature<br>
> of cabal-install 1.18.0.2.<br>
> Installation of dependencies succeeds but both happy and alex fail with:<br>
><br>
>     setup: The program happy is required but it could not be found<br>
><br>
> My workaround is to use the --only-dependencies flag, install the<br>
> dependencies, and manually install the packages.<br><br>
</div>I've run into this problem myself on Linux. My solution is to install<br>
ghc, happy, alex, hlint and cabal-install from debian packages and<br>
everything else using cabal install (either with or without using<br>
sandboxes).<br></blockquote><div><br></div><div>At a guess, both of you need to find the bin directory created *in the sandbox* and add it to $PATH while working in the sandbox. Perhaps there is some better way for cabal sandboxes to handle this automatically.</div>
</div><div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>