haskell/cabal — pull request #1139 by 23Skidoo (2012-12-05 01:13:23+00:00)
Title: Use userInstallDirs as the sandbox location.

We set both globalInstallDirs and userInstallDirs to the same value, but using
'--global' makes cabal-install want to do unnecessary things like invoking
itself with 'sudo'.