Make ppr_tc_args aware of -fprint-explicit-kinds
authorRyan Scott <ryan.gl.scott@gmail.com>
Thu, 5 Jul 2018 12:52:20 +0000 (08:52 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Thu, 5 Jul 2018 13:51:15 +0000 (09:51 -0400)
commitdbdcacfc55f28d8a85484cc1cf13dd78c45bf7ee
tree5f063405fccb5080f94d1dfdec33f65b98b3ba91
parentb6a3386186b77333b7a6cdc163499d7dae0dad1c
Make ppr_tc_args aware of -fprint-explicit-kinds

Summary:
`ppr_tc_args` was printing invisible kind arguments even
when `-fprint-explicit-kinds` wasn't enabled. Easily fixed.

Test Plan: make test TEST=T15341

Reviewers: goldfire, bgamari, simonpj

Reviewed By: simonpj

Subscribers: simonpj, rwbarton, thomie, carter

GHC Trac Issues: #15341

Differential Revision: https://phabricator.haskell.org/D4932
compiler/iface/IfaceType.hs
testsuite/tests/ghci/scripts/T15341.hs [new file with mode: 0644]
testsuite/tests/ghci/scripts/T15341.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T15341.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/T7939.stdout
testsuite/tests/ghci/scripts/all.T
testsuite/tests/indexed-types/should_fail/ClosedFam3.stderr