summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2018-11-26 12:59:50 -0500
committerRyan Scott <ryan.gl.scott@gmail.com>2018-11-26 13:56:34 -0500
commit984b75de7082689ebcc6e9d17b37f2c9b3702f71 (patch)
tree013bb5fe4da1ba79d3cf646f1c2a0ce6d65a96d8 /compiler/codeGen
parent8f9f52d8e421ce544d5437a93117545d52d0eabd (diff)
downloadhaskell-984b75de7082689ebcc6e9d17b37f2c9b3702f71.tar.gz
Fix #15941 by only special-casing visible infix applications
Summary: The iface pretty-printer had a special case for an application of an infix type constructor to two arguments. But this didn't take the visibilities of the arguments into account, which could lead to strange output like `@{LiftedRep} -> @{LiftedRep}` when `-fprint-explicit-kinds` was enabled (#15941). The fix is relatively straightforward: simply plumb through the visibilities of each argument, and only trigger the special case for infix applications if both arguments are visible (i.e., required). Test Plan: make test TEST=T15941 Reviewers: goldfire, bgamari, monoidal Reviewed By: goldfire, monoidal Subscribers: simonpj, rwbarton, carter GHC Trac Issues: #15941 Differential Revision: https://phabricator.haskell.org/D5375
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions