<div dir="ltr">Hmm, nuking ~/.cabal and ~/.ghc seems to have fixed it.<br><br>Good old cabal. When in doubt, delete everything.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 2, 2015 at 10:22 AM, Alex Hammel <span dir="ltr"><<a href="mailto:ahammel87@gmail.com" target="_blank">ahammel87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi list,<br><br>I've got a number of modules in a project set up like this:<br><br>project<br>|-- foo<br>|-- bar<br>|-- baz<br>`-- sandbox<br><br>where 'foo', 'bar' and 'baz' are modules which depend on one another, and 'sandbox' is a sandbox. Before building from scratch, I do a $(cabal sandbox init --sandbox=../sandbox) in each of the module folders.<br><br>If I run $(cabal install ./foo ./bar ./baz) from the projects/ directory, everything is happy. However, if I reconfigure one of the sub-modules with different flags, it fails with missing dependencies:<br><br># in foo/<br>$ cabal build<br>Package has never been configured. Configuring with default flags. If this<br>fails, please run configure manually.<br># module builds correctly<br><br>$ cabal configure --enable-tests<br>Resolving dependencies...<br>Configuring foo-0.1...<br><br>$ cabal build<br><br>dist/setup/setup.hs:13:8:<br>    Could not find module ‘System.FilePath.Glob’<br>    Perhaps you meant<br>      System.FilePath (from filepath-1.3.0.2)<br>      System.FilePath.Posix (from filepath-1.3.0.2)<br>    Use -v to see a list of the files searched for.<br><br>Glob is installed in the sandbox.<br><br>I've tried pointing to the sandbox config file manually with both $(cabal --sandbox-config-file=project/foo/cabal.sandbox.config) and $(cabal --sandbox-config-file=project/cabal.sandbox.config) with the same result. Cabal insists that Glob isn't installed until I nuke the foo/dist directory and start over.<br><br>I figure there's some flag I need to pass to `cabal configure` that I'm missing, but I can't figure out what it is. Anybody have any hints?<br><br>Cheers,<br>Alex<br></div>
</blockquote></div><br></div>