Parenthesize pretty-printed equalities when necessary
authorRyan Scott <ryan.gl.scott@gmail.com>
Thu, 11 May 2017 19:42:55 +0000 (15:42 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 11 May 2017 21:33:12 +0000 (17:33 -0400)
commit2277172ac3ea0bbeddebc9999a5d8b5f9f58afc9
treeff35d9fa285e91efec30a38e886268293bc43963
parent1f770a521e2331ce01007d36490d3b206afc6b4b
Parenthesize pretty-printed equalities when necessary

Fixes #13677 by parenthesizing equalities in a sufficiently high
pretty-printing context.

Test Plan: make test TEST=T13677

Reviewers: goldfire, austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13677

Differential Revision: https://phabricator.haskell.org/D3570
compiler/iface/IfaceType.hs
testsuite/tests/typecheck/should_fail/T13677.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T13677.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T