
#9628: Add Annotations to the AST to simplify source to source conversions -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.3 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by alanz): I was considering requiring the annotation to be an instance of a class that always returned a `SrcSpan`, basically move {{{ getLoc :: GenLocated l e -> l }}} into {{{ call SrcAnnotation l where getLoc :: GenLocated l e -> SrcSpan }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9628#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler