Pretty-print strict record fields from ifaces correctly
authorRyan Scott <ryan.gl.scott@gmail.com>
Sat, 20 May 2017 16:56:50 +0000 (12:56 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sat, 20 May 2017 20:29:18 +0000 (16:29 -0400)
commit2108460f9211bf5eab98e0f2f3218dcd271eeaad
tree30a0098830297c198e8e4b2dcc4dc4348c270fdc
parent5b8f95d7fca302a9ad27533b74b1a1c2364605dc
Pretty-print strict record fields from ifaces correctly

We need to use parentheses more when pretty-printing types with bang
patterns within constructors that use record syntax. Fixes #13699.

Test Plan: make test TEST=T13699

Reviewers: austin, bgamari, dfeuer

Reviewed By: dfeuer

Subscribers: dfeuer, rwbarton, thomie

GHC Trac Issues: #13699

Differential Revision: https://phabricator.haskell.org/D3587
compiler/iface/IfaceSyn.hs
testsuite/tests/ghci/scripts/T13699.hs [new file with mode: 0644]
testsuite/tests/ghci/scripts/T13699.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T13699.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T