Replacing module Array by IArray

Marcin 'Qrczak' Kowalczyk
4 Apr 2001 14:48:33 GMT

Wed, 28 Mar 2001 21:11:59 +0200, <> pisze:

> The module Array exports module Ix (Haskell 98 Library Report).
> The module IArray doesn't export Ix (jet?).

Thanks, it will export it in ghc-5.00.

> I think a pack and unpack function to convert between IArray ix be
> and UArray ix ube via 'amap pack/unpack' would be useful.

Such conversion is as simple as
    \a -> listArray (bounds a) (elems a)
    \a -> array (bounds a) (assocs a)
so I don't think it needs a separate function.

 __("<  Marcin Kowalczyk *
  ^^                      SYGNATURA ZASTĘPCZA