Handle multi-line messages output by ghc