haskell/cabal — pull request #1118 by 23Skidoo (2012-11-16 18:37:57+00:00)
Title:  Rebuild source directories added to the sandbox.

Adds an offline mode for the install command and an `onlyDepsOf` flag that allows to remove a subset of targets from the install plan (see also [my message to the mailing list](http://article.gmane.org/gmane.comp.lang.haskell.cabal.devel/9314)).

Rebuilding of add-source deps themselves is implemented by running

install --offline --only-dependencies-of="." "." /path/to/add-source-dep-1 ... /path/to/add-source-dep-N

before `cabal build`.