[GHC] #9628: Add Annotations to the AST to simplify source to source conversions

GHC ghc-devs at haskell.org
Thu Sep 25 16:29:00 UTC 2014


#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):

 On further reflection, option 1 will allow for example a smart editor
 which uses the annotated `ParsedSource` as a primary data structure and
 submits changes through for incremental renaming/type checking and
 eventual code generation.

 This way the normal command line invocation will lock the annotation down
 as a `SrcSpan`, but it can be replaced all the way through when used for
 tooling.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9628#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list