#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 agree it requires extra code for patterns, but considering that a
 missing fixity defaults to 9 (the highest) it would even make sense to
 always require parens around "- (integer | float)" to the left of infix
 ops. But I suppose there are not many patterns like:

 {{{
 -1 `op` ...
 }}}

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