[GHC] #2947: infix precedence of backtick functions defined in ghci is not reported by :info

GHC trac at galois.com
Tue Jan 13 16:46:24 EST 2009


#2947: infix precedence of backtick functions defined in ghci is not reported by
:info
-----------------------------+----------------------------------------------
Reporter:  EyalLotem         |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  GHCi            
 Version:  6.10.1            |       Severity:  minor           
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 excerpt from ghci:
 {{{
 Prelude> let infixr 9 `f` ; f = (+)
 let infixr 9 `f` ; f = (+)
 Prelude> 5 * 3 `f` 4
 35
 Prelude> :info f
 f :: Integer -> Integer -> Integer
         -- Defined at <interactive>:1:19
 Prelude> :info `f`
 f :: Integer -> Integer -> Integer
         -- Defined at <interactive>:1:19
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2947>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list