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

GHC ghc-devs at haskell.org
Tue Aug 27 17:34:50 UTC 2013


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

 {{{
 err = do { let x = 1 ; Just x }
 }}}

 Breaking the line before the `;` fixes the error.

 This was tested on today's (27 Aug) HEAD.

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




More information about the ghc-tickets mailing list