Paren removal in renamer
Alan & Kim Zimmerman
alan.zimm at gmail.com
Mon Nov 21 19:49:40 UTC 2016
Hi all
I have been wrestling with something silly most of today.
T12530 has the following splice in it, which has parens around the "(Maybe
Int)".
$([d| -- Test the Template Haskell pretty-printing for TypeApplications
f = id @(Maybe Int)
|])
the parsed source has these parens, but they are removed for the renamed
source.
I am modifying the pretty printer to be faithful to the original source, so
when the renamed source is printed it has no parens, causing T12530 to fail.
I have looked all over the source, and cannot see where the HsParTy is
removed.
Can anyone give me a pointer?
See details here [1]
My current work branch is here [2], but I am pretty sure there are no
changes affecting this there.
[1] http://lpaste.net/1624164315596587008
[2] https://github.com/alanz/ghc/tree/wip/T3384
Regards
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20161121/4f7cb2dd/attachment.html>
More information about the ghc-devs
mailing list