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)
committerRyan Scott <ryan.gl.scott@gmail.com>
Thu, 5 Jul 2018 13:51:15 +0000 (09:51 -0400)
commitb6a3386186b77333b7a6cdc163499d7dae0dad1c
treec4ba13c33ddfe8b4a0a12ffcda4df77db2ce816a
parent57733978482dc1e566a7d4cd90d4cbbd1315e3b2
Fix #15331 with careful blasts of parenthesizeHsType

Summary:
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
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