#4176: reject unary minus in infix left hand side function bindings that resolve
differently as expressions
---------------------------+------------------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.2.1
Component: Compiler | Version: 6.12.3
Resolution: wontfix | Keywords: fixity resolution
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
---------------------------+------------------------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => wontfix
Comment:
hugs September 2006 rejects this with:
{{{
ERROR "b.hs":4 - Illegal pattern syntax
}}}
but as far as I can tell it is legal according to the Haskell 2010 report:
{{{
decl -> (funlhs | var) rhs
funlhs -> pat varop pat
pat -> lpat
lpat -> - (integer | float)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4176#comment:5>
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