ghc-9.2.5: The GHC API
Converts a list of WarningMessages into a tuple where the second element contains only error, i.e. warnings that are considered fatal by GHC based on the input DynFlags.
Checks if given WarnMsg is a fatal warning.