Apply 'sandboxInstallPolicy' after 'reinstallTargets'.

Otherwise 'install --reinstall' in a sandbox reinstall the contents of the whole
sandbox.
Set 'haddockDistPref' to the right value when working inside a sandbox.

Fixes #1332.
Remove an obsolete comment.
Make newly-added add-source deps override previously installed versions.

Fixes #1197.

This patch is a bit large because it includes several related changes:

1) Remove 'installUseSandbox' from 'InstallFlags' and pass 'useSandbox' as an
additional argument instead.

2) Instead of calling 'reinstallAddSourceDeps' from 'installAction', always pass
'SandboxPackageInfo' to 'install'.

3) Set the timestamps of newly-added add-source deps to 0 in the timestamp file.

4) Move the timestamp file update to 'postInstallActions' from
'withModifiedDeps'. This way, the timestamps are updated even when the user runs
'install --only-dependencies' or 'install some-add-source-dep-package-id'.
Merge pull request #1331 from 23Skidoo/new-add-source-deps-have-priority

Make newly-added add-source deps override previously installed versions.
Don't update 'cabal.sandbox.config' after 'configure -w'.

Use the values from 'ConfigFlags' that were read from 'dist/setup-config'
instead.

This way 'reinstallAddSourceDeps' won't reinstall deps for the wrong compiler,
but the user will be forced to use 'install -w' when installing inside a
sandbox. This is consistent with the normal mode of operation.

Fixes #1333, in a way.
Expand a comment.
Merge pull request #1334 from 23Skidoo/no-with-compiler-sandbox-config

Don't update `cabal.sandbox.config` after `configure -w`.
cabal-install: put the Paths_cabal_install.hs and Paths_Cabal.hs in place as expected
disable hackage's preferred-versions (as we don't use it when merge ebuilds)

hackage.haskell.org/00-index.tar contains preferred-versions for some interesting
packages. For now it's 'base-3'.

Otherwise depends generated by hackport differ from ones pulled by ./Setup.hs.
cabal/cabal-install: renamed D.C.Exception -> D.C.ExceptionCI to avoid clash with Cabal's one

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Fix error messages with "cabal update" -> "hackport update" Same fix as marty.rosenberg@gmail.com once did for cabal-install-0.8.2, which we now are replacing.
cabal/cabal-install: renamed D.C.Exception -> D.C.ExceptionCI to avoid clash with Cabal's one

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
forbid cabal to check for self updates