[Haskell-beginners] Build woes (cabal configure can't find sandboxed deps)

Alex Hammel ahammel87 at gmail.com
Mon Feb 2 20:50:05 UTC 2015


That's exactly what I did. From my setup script:

cabal sandbox init --sandbox sandbox
for folder in $SUBMODULES; do
    (cd "$folder"; cabal sandbox init --sandbox ../sandbox)
    cabal sandbox add-source "$folder"
done

$SUBMODULES contains ./foo, ./bar, and ./baz

On Mon, Feb 2, 2015 at 12:44 PM, Brandon Allbery <allbery.b at gmail.com>
wrote:

> On Mon, Feb 2, 2015 at 3:40 PM, Alex Hammel <ahammel87 at gmail.com> wrote:
>
>> Hmm, nuking ~/.cabal and ~/.ghc seems to have fixed it.
>> Good old cabal. When in doubt, delete everything.
>>
>
> That says to me you didn't have the sandbox set up right. I'd have set up
> the sandbox and then used --add-source for foo, bar, and baz... or,
> sometimes, symlink the original sandbox into those dirs, but I suspect
> that's asking for trouble :)
>
> --
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150202/d72c187a/attachment.html>


More information about the Beginners mailing list