RE: RdrName and decorations

2016-08-16 Thread Simon Peyton Jones via ghc-devs
.org Subject: RdrName and decorations Hi all At the moment I am working through ghc-exactprint, adding a feature to add standard API annotations to any constructed AST so that it can be (pretty)-printed. One of the major headaches is the decorations on a RdrName. What I mean by this is that an

Re: RdrName and decorations

2016-08-13 Thread Matthew Pickering
I agree with you Alan. In particular, information about 'pattern' and 'type' keywords should be captured in the AST. It can be scrubbed out in the renamer to avoid polluting later passes. At the moment, the 'type' keyword doesn't do anything to direct the renaming process, it just resolves an ambi

RdrName and decorations

2016-08-05 Thread Alan & Kim Zimmerman
Hi all At the moment I am working through ghc-exactprint, adding a feature to add standard API annotations to any constructed AST so that it can be (pretty)-printed. One of the major headaches is the decorations on a RdrName. What I mean by this is that an item appearing in the AST as a RdrName