GHC allows sections with out parenthesis in tuples
|Reported by:||JeremyShaw||Owned by:|
|Type of failure:||Test Case:||rename/should_fail/T2490|
|Related Tickets:||Differential Revisions:|
GHC gladly accepts:
f x = (head x, ())
but the Haskell 98 Report (section 3.5) seems to indicate that additional parens are required, like this:
f x = ((head 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 7 years ago by simonpj
- difficulty set to Unknown
- Resolution set to fixed
- Status changed from new to closed
- Test Case set to rename/should_fail/T2490