Follow-up to #13887, for promoted infix constructors
authorRyan Scott <ryan.gl.scott@gmail.com>
Sat, 29 Jul 2017 23:36:42 +0000 (19:36 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sat, 29 Jul 2017 23:36:42 +0000 (19:36 -0400)
commit7089dc2f12f9616771fc1de143e9b974157405d8
tree386a5bebf509ffb04ef8b91a34d1214e59bee441
parentf839b9de18a9f795e438314bea9f17e594afa354
Follow-up to #13887, for promoted infix constructors

Summary:
Correct a couple more spots in the TH pretty-printer by applying the
appropriate parenthesization for infix names. Fixes #13887 (again).

Test Plan: make test TEST=T13887

Reviewers: austin, bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13887

Differential Revision: https://phabricator.haskell.org/D3802
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
testsuite/tests/th/T13887.hs [new file with mode: 0644]
testsuite/tests/th/T13887.stdout [new file with mode: 0644]
testsuite/tests/th/TH_PromotedList.stderr
testsuite/tests/th/TH_RichKinds2.stderr
testsuite/tests/th/all.T