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