`-v0` should never output anything to stdout. cabal-install should be silent in this mode of operation. If you enable `documentation: true` in a cabal file then a lot of junk from haddock is output. Perhaps passing `--no-warnings` to haddock is sufficient.