GHC allows sections with out parenthesis in tuples
|Reported by:||JeremyShaw||Owned by:|
|Type of failure:||None/Unknown||Test Case:||rename/should_fail/T2490|
|Related Tickets:||Differential Rev(s):|
GHC gladly accepts:
f x = (
but the Haskell 98 Report (section 3.5) seems to indicate that additional parens are required, like this:
f x = ((
It's unclear if this is a bug in GHC, an undocumented feature, or valid H98 if you read the report in just the right way.
Hugs and lambdabot don't like it.
More importantly, the trhsx preprocessor used by HSX/HSP does not like it. So, we are wondering if we should extend trhsx to allow it, and if so, what the rules are.
Change History (5)
comment:3 Changed 9 years ago by
|Status:||new → closed|
|Test Case:||→ rename/should_fail/T2490|