On Thu, May 3, 2012 at 2:52 AM, Andrew Seniuk <rasfar@gmail.com> wrote:
Note that the "Annotated" version of the HSE parser/AST will probably
not provide enough
 generality for the sorts of attributes you want to store (it's for
source locations, unless something changed in the most recent
release).

I do hope you're wrong on that! The annotations are fully general (and have been all along), so you can store whatever you like there(*). They are *used* for source locations by the parser, but that's just one possibility.

Cheers,

/Niklas

(*) The only requirement is that you need to store values of the same type throughout the syntax tree - but Either or Maybe should do the trick there.