AlanRegardsLinksPlease review if you are interested.D438 modifies the Lexer/Parser to produce API annotations and comments as part of the ParsedSource result.D426 adds various extra locations in the HsSyn AST to allow the additions of API annotations everywhere needed.D412 Extends the HsLit values to have an extra field for the original source text, which can differ from the literal value.The final versions of the patches for this are ready for review.Hi allHopefully I will be able to stop harassing everyone on this topic soon.
It has been split into three parts
https://ghc.haskell.org/trac/ghc/wiki/GhcAstAnnotations
https://ghc.haskell.org/trac/ghc/ticket/9628
https://phabricator.haskell.org/D412
https://phabricator.haskell.org/D426
https://phabricator.haskell.org/D438