
#8840: standalone 'let' in do notation does not parse -------------------------------------+------------------------------------ Reporter: slyfox | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by slyfox): * status: new => closed * resolution: => invalid Comment: Oh, see. Didn't know {{{ f x = let a = 1; b = 2 g y = exp2 in exp1 }}} is a valid construct. My code did translated to {{{ main = do { let z = 1 print z } -- stray '}' }}} Closign as INVALID then. Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8840#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler