patch applied (cabal-install): Generalise the logging of selected and discarded packages