#4176: reject unary minus in infix left hand side function bindings that resolve
differently as expressions
---------------------------+------------------------------------------------
  Reporter:  maeder        |          Owner:                   
      Type:  bug           |         Status:  new              
  Priority:  normal        |      Milestone:  7.2.1            
 Component:  Compiler      |        Version:  7.2.1            
Resolution:                |       Keywords:  fixity resolution
  Testcase:                |      Blockedby:                   
Difficulty:                |             Os:  Unknown/Multiple 
  Blocking:                |   Architecture:  Unknown/Multiple 
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------

Comment(by maeder):

 I just strikes me that `a + -1` is legal as pattern, but illegal as
 expression. (Apart from `_`, legal patterns should be a subset of legal
 expressions).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4176#comment:8>
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

Reply via email to