<p dir="ltr">Try to run this from packageB dir:<br>
"cabal sandbox add-source {path to C}"</p>
<p dir="ltr">Then install packageA from B</p>
<p dir="ltr">Also maybe try to run<br>
"cabal install packageC" <br>
from packageB - this may not be necessary.</p>
<p dir="ltr">Btw separate sandboxes - one per each project - work just fine.</p>