Parenthesize infix type names in data declarations in TH printer
authorEugene Akentyev <ak3ntev@gmail.com>
Tue, 11 Jul 2017 17:59:47 +0000 (13:59 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 11 Jul 2017 18:36:05 +0000 (14:36 -0400)
commitef7fd0ae8b519b3cd05349753a0e145112c26b67
treed10796537fd7fc3d37dd6cc1d44aad3341791329
parent85ac65c5f0b057f1b07ed7bf9a8d9aeae4ce1390
Parenthesize infix type names in data declarations in TH printer

Previously datatype names were not paraenthesized (#13887).

Reviewers: austin, bgamari, RyanGlScott

Reviewed By: RyanGlScott

Subscribers: RyanGlScott, rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3717
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
testsuite/tests/th/T10828.stderr
testsuite/tests/th/T12403.stdout