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

Fixes #931, #1585.