#7188: `someName` does not always act like an infix.
---------------------------------------+------------------------------------
 Reporter:  timthelion                 |          Owner:                  
     Type:  bug                        |         Status:  new             
 Priority:  normal                     |      Component:  Compiler        
  Version:  7.4.2                      |       Keywords:                  
       Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple
  Failure:  GHC rejects valid program  |       Testcase:                  
Blockedby:                             |       Blocking:                  
  Related:                             |  
---------------------------------------+------------------------------------
 $ cat infix.hs
 main = print f
 f = (`div`) 3 4
 [timothy@timothy haskell]$ ghc infix.hs
 [1 of 1] Compiling Main             ( infix.hs, infix.o )

 infix.hs:2:11: parse error on input `)'
 [timothy@timothy haskell]$ cat infix1.hs
 main = print f
 (//) = div
 f = (//) 3 4
 [timothy@timothy haskell]$ ghc infix1.hs
 [timothy@timothy haskell]$

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