Add missing parenthesizeHsType in cvtSigTypeKind
We need to ensure that the output of `cvtSigTypeKind` is parenthesized (at precedence `sigPrec`) so that any type signatures with an outermost, explicit kind signature can parse correctly. Fixes #22784. (cherry picked from commit 4efee43d)
Showing
- compiler/GHC/ThToHs.hs 1 addition, 1 deletioncompiler/GHC/ThToHs.hs
- testsuite/tests/th/T22784.hs 7 additions, 0 deletionstestsuite/tests/th/T22784.hs
- testsuite/tests/th/T22784.stderr 6 additions, 0 deletionstestsuite/tests/th/T22784.stderr
- testsuite/tests/th/all.T 2 additions, 1 deletiontestsuite/tests/th/all.T
Loading
Please register or sign in to comment