Replacing module Array by IArray

Hallo! The module Array exports module Ix (Haskell 98 Library Report). The module IArray doesn't export Ix (jet?). I think a pack and unpack function to convert between IArray ix be and UArray ix ube via 'amap pack/unpack' would be useful. (Or am I just missing the conversion function and it is already there? Andreas

Wed, 28 Mar 2001 21:11:59 +0200, andreas.marth@daimlerchrysler.com
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) or \a -> array (bounds a) (assocs a) so I don't think it needs a separate function. -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTÊPCZA QRCZAK
participants (2)
-
andreas.marth@daimlerchrysler.com
-
qrczak@knm.org.pl