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.
parent
496607fd
No related branches found
No related tags found
Pipeline #61699 passed
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
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