#883: cannot use (!) as an infix operator
---------------------------------------------+------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:         
        Type:  bug                           |       Status:  new    
    Priority:  normal                        |    Milestone:  6.6    
   Component:  Compiler                      |      Version:  6.5    
    Severity:  normal                        |     Keywords:         
          Os:  Unknown                       |   Difficulty:  Unknown
Architecture:  Unknown                       |  
---------------------------------------------+------------------------------
When I tried to compile following code with ghc-6.5.20060830,
 {{{
 {-# INLINE (!) #-}
 -- | Returns the element of an immutable array at the specified index.
 (!) :: (IArray a e, Ix i) => a i e -> i -> e
 arr ! i = case bounds arr of (l,u) -> unsafeAt arr (index (l,u) i)
 }}}
 I got error messages below
 {{{
 Data/ArrayBZ/Internals/IArray.hs:109:11: Not in scope: `!'
 Data/ArrayBZ/Internals/IArray.hs:111:0: Not in scope: `!'
 Data/ArrayBZ/Internals/IArray.hs:201:49: Not in scope: `!'
 }}}

 The above code is a part of !ArrayRef library written by Bulat Ziganshin.

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