Add a 'haddock' section to '~/.cabal/config'.

Fixes #931, #1585.