These comments are meant to indicate which annotations each AST fragment has. However, they are rarely kept up to date and ultimately not that useful. If someone wants to know then it is easier to look at the `Annotate` module in `ghc-exactprint`where this information also exists programatically.
On Wed, Jul 20, 2016 at 9:24 AM, Ömer Sinan Ağacan <omeraga...@gmail.com> wrote: > I see some weird comments like > > -- - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnOpen', > -- 'ApiAnnotation.AnnVbar','ApiAnnotation.AnnComma', > -- 'ApiAnnotation.AnnClose' > > -- For details on above see note [Api annotations] in ApiAnnotation > > in some files, but Note [Api annotations] in compiler/parser/ApiAnnotation.hs > doesn't say anything about those comments. Can someone update the note to > explain what are those comments for? > _______________________________________________ > ghc-devs mailing list > ghc-devs@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs