#2490: GHC allows sections with out parenthesis in tuples
---------------------------+------------------------------------------------
Reporter: JeremyShaw | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.8.3
Severity: normal | Resolution:
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
---------------------------+------------------------------------------------
Comment (by JeremyShaw):
Christian Maeder noted the following:
Also
(+ x, ())
((), + x)
((), + x, ())
are accepted by GHC
This looks like a bug to me, because
(+, ())
((), x +)
are rejected.
Sections need to be in parens.
If one allows sections as tuple components, then the latter should may
be made legal, too.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2490#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs