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

GHC ghc-devs at haskell.org
Wed Sep 24 09:04:02 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):

 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


More information about the ghc-tickets mailing list