[GHC] #9022: TH pretty printer and GHC parser semicolon placement mismatch

GHC ghc-devs at haskell.org
Wed Nov 12 12:38:13 UTC 2014


#9022: TH pretty printer and GHC parser semicolon placement mismatch
-------------------------------------+-------------------------------------
              Reporter:  roldugin    |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:  7.10.1
             Component:  Template    |          Version:  7.8.1
  Haskell                            |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:  GHC         |  Related Tickets:
  rejects valid program              |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I think the solution is not to be very delicate about how to place the
 semicolons for the do-notation. Rather, we should just use braces and
 semicolons for let-notation too.  At least for lets in do-notation but
 perhaps for all.

 Then you'd get
 {{{
 bar arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 = do {let { x = 5 };
                                                             return x}
 }}}
 which should work fine.

 Anyone want to do this?  It would be consistent with the story for do-
 notation.

 Simon

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


More information about the ghc-tickets mailing list