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

GHC ghc-devs at haskell.org
Thu Sep 25 08:50:13 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):

 Once the parameter is added to the hsSyn structures, there are two ways to
 work it forward.

 1. Work it in as a parameter throughout all the compiler passes
 2. Hard code it to SrcSpan for renamer onwards

 Option 1 allows tool writers to add annotations and then submit for
 further processing, but sprinkles the parameter variable throughout the
 code base.

 Option 2 provided the most value for tool developers.

 Which road? I am leaning towards working it all the way through.

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


More information about the ghc-tickets mailing list