Skip to content

STUArray and IOUArray lack an Eq instance

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
Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information