[GHC] #3749: unexpected parse errors with `do` and `let`
GHC
trac at galois.com
Mon Dec 14 00:52:04 EST 2009
#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
More information about the Glasgow-haskell-bugs
mailing list