[GHC] #10250: API Annotations : add Locations in hsSyn were layout occurs

GHC ghc-devs at haskell.org
Mon Apr 6 19:26:54 UTC 2015


#10250: API Annotations : add Locations in hsSyn were layout occurs
-------------------------------------+-------------------------------------
              Reporter:  alanz       |             Owner:  alanz
                  Type:  task        |            Status:  new
              Priority:  normal      |         Milestone:  7.10.2
             Component:  Compiler    |           Version:  7.10.1
              Keywords:              |  Operating System:  Unknown/Multiple
  ApiAnnotations                     |   Type of failure:  None/Unknown
          Architecture:              |        Blocked By:
  Unknown/Multiple                   |   Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 At the moment ghc-exactprint, which uses the GHC API Annotations to
 provide a framework for roundtripping Haskell source code with optional
 AST edits, has to implement a horrible workaround to manage the points
 where layout needs to be captured.

 These are

   MatchGroup
   HsDo
   HsCmdDo
   HsLet
   LetStmt
   HsCmdLet
   GRHSs

 To provide a more natural representation, the contents subject to layout
 rules need to be wrapped in a SrcSpan.

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


More information about the ghc-tickets mailing list