
#8840: standalone 'let' in do notation does not parse -------------------------------------+------------------------------------ Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by hvr): This is because `let` is a block-opening syntax element just like `do`; c.f. [http://www.haskell.org/onlinereport/haskell2010/haskellch2.html#x7-210002.7 Haskell Report 2010: Lexical Structure] If you write instead {{{#!hs do { let { z = 1 }; print z } }}} it should work... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8840#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler