Parenthesize forall-type args in cvtTypeKind
Trac #14646 happened because we forgot to parenthesize `forall` types to the left of an arrow. This simple patch fixes that. Test Plan: make test TEST=T14646 Reviewers: alanz, goldfire, bgamari Reviewed By: alanz Subscribers: rwbarton, thomie, carter GHC Trac Issues: #14646 Differential Revision: https://phabricator.haskell.org/D4298 (cherry picked from commit f380115c)
Showing
- compiler/hsSyn/Convert.hs 5 additions, 4 deletionscompiler/hsSyn/Convert.hs
- testsuite/tests/th/T14646.hs 6 additions, 0 deletionstestsuite/tests/th/T14646.hs
- testsuite/tests/th/T14646.stderr 6 additions, 0 deletionstestsuite/tests/th/T14646.stderr
- testsuite/tests/th/all.T 1 addition, 0 deletionstestsuite/tests/th/all.T
Loading
Please register or sign in to comment