patch applied (cabal-install): Rearrange the BuildReport code