Skip to content

Convert diagnostics in GHC.Rename.HsType to proper TcRnMessage (#20115)

Rinat Striungis requested to merge Haskell-mouse/ghc:ConvertDiagnostics into master

This MR removes all occurrences of TcRnUnknownMessage in GHC.Rename.HsType.

It also introduces the following constructors of TcRnMessage:

  • TcRnDataKindsError
  • TcRnUnusedQuantifiedTypeVar
  • TcRnIllegalKindSignature
  • TcRnUnexpectedPatSigType
  • TcRnSectionPrecedenceError
  • TcRnPrecedenceParsingError
  • TcRnIllegalKind
  • TcRnNegativeNumTypeLiteral
  • TcRnUnexpectedKindVar
  • TcRnBindMultipleVariables
  • TcRnBindVarAlreadyInScope

Merge request reports