[GHC] #8183: Parse error with let inside of do with { }

GHC ghc-devs at haskell.org
Tue Aug 27 21:21:27 UTC 2013


#8183: Parse error with let inside of do with { }
----------------------------------------------+----------------------------
        Reporter:  goldfire                   |            Owner:
            Type:  bug                        |           Status:  closed
        Priority:  normal                     |        Milestone:
       Component:  Compiler (Parser)          |          Version:  7.7
      Resolution:  invalid                    |         Keywords:
Operating System:  Unknown/Multiple           |     Architecture:
 Type of failure:  GHC rejects valid program  |  Unknown/Multiple
       Test Case:                             |       Difficulty:  Unknown
        Blocking:                             |       Blocked By:
                                              |  Related Tickets:
----------------------------------------------+----------------------------
Changes (by igloo):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Thanks for the report, but this isn't a bug: After applying the layout
 rule, the code looks like this:
 {{{
 do { let { x = 1 ; Just x } }
 }}}

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




More information about the ghc-tickets mailing list