Fix #15331 with careful blasts of parenthesizeHsType
authorRyan Scott <ryan.gl.scott@gmail.com>
Thu, 5 Jul 2018 12:51:43 +0000 (08:51 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 12 Jul 2018 21:06:02 +0000 (17:06 -0400)
commitf663e507eaf49c6a5e05fd6edb78d649a7611af4
tree9e7db18db0610a23d7439d29c0a1c1d58587c1c5
parent113bdb8b873b1e3def4f86f2a3c6923b869dcb0f
Fix #15331 with careful blasts of parenthesizeHsType

Another `-ddump-splices` bug that can be solved with more
judicious use of parentheses.

Test Plan: make test TEST=T15331

Reviewers: goldfire, bgamari, alanz, tdammers

Reviewed By: tdammers

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #15331

Differential Revision: https://phabricator.haskell.org/D4920

(cherry picked from commit b6a3386186b77333b7a6cdc163499d7dae0dad1c)
compiler/hsSyn/Convert.hs
compiler/hsSyn/HsTypes.hs
compiler/hsSyn/HsUtils.hs
compiler/typecheck/TcGenDeriv.hs
testsuite/tests/th/T15331.hs [new file with mode: 0644]
testsuite/tests/th/T15331.stderr [new file with mode: 0644]
testsuite/tests/th/all.T