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@gmail.com> wrote:
On Mon, Feb 2, 2015 at 3:40 PM, Alex Hammel <ahammel87@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@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners