#2896: Warning suggestion: argument not necessarily a binary operator
-----------------------------+----------------------------------------------
Reporter:  porges            |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 As an example:

 {{{
 let fn (+) = 1; fn x = 2 in fn 1
 }}}

 The suggested warning is that: if an argument to a function consists
 entirely of characters which are symbols (all isSymbol), and the type of
 that argument isn't (a -> b -> c), then produce a warning.

 Suggested wording is something along the lines of "Warning: the argument
 '(+)' isn't necessarily a binary operator, although it looks like one.
 This may be confusing to readers of your code."

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