#3749: unexpected parse errors with `do` and `let`
---------------------------+------------------------------------------------
Reporter: dherington | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.4 | Keywords: do, let, parse error
Os: Windows | Testcase:
Architecture: x86 | Failure: GHC rejects valid program
---------------------------+------------------------------------------------
Unless I misunderstand, all three of the following definitions are
syntactically correct. However, f2 and f3 elicit parse errors.
{{{
f1 = do let x = 3
return x
f2 = do let x = 3; return x
f3 = do { let x = 3; return x }
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3749>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs