Convert diagnostics in GHC.Rename.HsType to proper TcRnMessage (#20115)
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