#1270: STUArray and IOUArray lack an Eq instance
-------------------------------------+--------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.6
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------------------+--------------------------------------
Data.Array.IO.IOArray and Data.Array.ST.STArray have Eq instances defined,
but their unboxed counterparts (IOUArray and STUArray) have not.
On certain scenarios, this makes switching from boxed to unboxed arrays
much harder than necessary.
Furthermore, comments on the sources suggest that the Eq instance for
unboxed mutable arrays were accidentally ommited; e.g., from
Data/Array/IO.hs:
{{{
module Data.Array.IO (
...
-- * @IO@ arrays with unboxed elements
IOUArray, -- instance of: Eq, Typeable
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1270>
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