Ok. Seems that I get this method working.

Just copied .cabal-sandbox and caba.sandbox.config over new location. Replaced all occurrences of the old path to the new one in cabal.sandbox.config and .cabal-sandbox/x86_64-linux-ghc-7.8.4-packages.conf.d/*.conf. After that I executed `cabal sandbox hc-pkg recache` and everything seems to work.

Doesn't seem like a sane solution, but can be used if absolutely needed.

On Mon, Mar 30, 2015 at 10:11 PM, Brandon Allbery <allbery.b@gmail.com> wrote:
On Mon, Mar 30, 2015 at 2:42 PM, Alexey Shmalko <rasen.dubi@gmail.com> wrote:
Not sure, but is this possible to copy your home cabal sandbox to ./.cabal-sandbox? Then you'll have all your default packages available and won't build them again.

You'd need to fix paths in the package database and `cabal hc-pkg recache` (if that works; might need cabal exec).
 
--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net