Skip to content

EPA: statements list span should include final semicolon

Alan Zimmerman requested to merge wip/az/T24754-epa-stmtlist-semi-span into master

A statement list can have semi-colons sprinkled throughout it. When the last one has a semi, the containing list span should include it.

e.g. for

eh1  =  try (do return r;) <|> (do
                return r)

The HsDo statement list span should include the semi, so the parens can be placed correctly.

Closes #24754 (closed)

Merge request reports