Ticket #42 (closed bug report: fixed)
nested do blocks without extra indentation
|Reported by:||sebf@…||Owned by:||nibro|
|Priority:||major||Milestone:||Full code support|
HSE (0.5.5) fails to parse this program:
nestedDoBlocks = getChar >>= (\c1 -> do getChar >>= (\c2 -> do getChar >>= (\c3 -> return [c1,c2,c3])))
If the last line is indented one more space then it parses fine.
GHC parses both versions. I think it's more likely that this is a bug in GHC rather than HSE but am not sure..