<div dir="ltr"><div><div>Hopefully at a future date they will be a part of the AST itself, so this will be clearer.<br><br></div>In reality, looking at Parser.y is not enough, as there are some workings in RdrHsSyn.hs too, and the process of attachment in Parser.y is sometimes quite complex.<br><br></div><div>Basically the best reference is indeed ghc-exactprint, being an application that expressly makes use of all of them.<br><br></div><div>Alan<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 2:01 PM, Matthew Pickering <span dir="ltr"><<a href="mailto:matthewtpickering@gmail.com" target="_blank">matthewtpickering@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Jul 20, 2016 at 12:22 PM, Ben Gamari <<a href="mailto:ben@smart-cactus.org">ben@smart-cactus.org</a>> wrote:<br>
> Matthew Pickering <<a href="mailto:matthewtpickering@gmail.com">matthewtpickering@gmail.com</a>> writes:<br>
><br>
>> These comments are meant to indicate which annotations each AST<br>
>> fragment has. However, they are rarely kept up to date and ultimately<br>
>> not that useful. If someone wants to<br>
>> know then it is easier to look at the `Annotate` module in<br>
>> `ghc-exactprint`where this information also exists programatically.<br>
>><br>
> Hmm, the fact that this module is outside of GHC is a bit unfortunate.<br>
> If I'm looking at a random GHC commit from a year ago how am I to know<br>
> which annotations I can expect? I guess the testsuite?<br>
<br>
</span>The only reliable way is to look at `Parser.y`.<br>
<br>
><br>
> Cheers,<br>
><br>
> - Ben<br>
><br>
</blockquote></div><br></div>