[GHC] #1270: STUArray and IOUArray lack an Eq instance

GHC trac at galois.com
Mon Apr 9 01:08:55 EDT 2007


#1270: STUArray and IOUArray lack an Eq instance
-------------------------------------+--------------------------------------
    Reporter:  jcpetruzza at gmail.com  |       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
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list