|
| <prev next> |
[GHC] #883: cannot use (!) as an infix operator: msg#00186lang.haskell.glasgow.bugs
#883: cannot use (!) as an infix operator ---------------------------------------------+------------------------------ Reporter: aotani@xxxxxxxxxxxxxxxxxxxxx | 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 Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [GHC] #882: Overflow bug in System.Time, Sigbjorn Finne |
|---|---|
| Previous by Thread: | [GHC] #882: Overflow bug in System.Time, GHC |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |