Fix pretty-printing of zero-argument lambda expressions
authorRyan Scott <ryan.gl.scott@gmail.com>
Fri, 23 Jun 2017 15:40:10 +0000 (11:40 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 23 Jun 2017 15:40:29 +0000 (11:40 -0400)
commit3c4537ea1c940966eddcb9cb418bf8e39b8f0f1c
tree12ef3d433ff750a7dba97c9eaef8cb45665d970a
parent398a444bc673aa4bbdd30029e2cce440f0309e34
Fix pretty-printing of zero-argument lambda expressions

Using Template Haskell, one can construct lambda expressions with no
arguments. The pretty-printer isn't aware of this fact, however. This
changes that.

Test Plan: make test TEST=T13856

Reviewers: bgamari, austin, goldfire

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13856

Differential Revision: https://phabricator.haskell.org/D3664
compiler/hsSyn/Convert.hs
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
testsuite/tests/th/T13856.hs [new file with mode: 0644]
testsuite/tests/th/T13856.stderr [new file with mode: 0644]
testsuite/tests/th/all.T