[Git][ghc/ghc][wip/9.14.2-backports] 27 commits: Refactor GHC.Driver.Errors.printMessages