Re: Mutable arrays in Haskell 98

2002-03-27 Thread Mark Tullsen
José Romildo Malaquias wrote: > ... > My attempt was > > mapIOArray :: Ix ix => (a -> b) -> IOArray ix a -> IO (IOArray ix b) > mapIOArray f v = do w <- newIOArray bounds > mapping w (range bounds) > where > bounds = boundsIOArray v > mappi

Re: Mutable arrays in Haskell 98

2002-03-27 Thread José Romildo Malaquias
On Wed, Mar 27, 2002 at 03:58:46PM +, Malcolm Wallace wrote: > José Romildo Malaquias <[EMAIL PROTECTED]> writes: > > > I would like to use muttable arrays in Haskell 98, with the GHC > > _and_ NHC98 compilers. By muttable arrays I mean arrays with > > in-place updates, as with the MArray arr

Re: Mutable arrays in Haskell 98

2002-03-27 Thread Malcolm Wallace
José Romildo Malaquias <[EMAIL PROTECTED]> writes: > I would like to use muttable arrays in Haskell 98, with the GHC > _and_ NHC98 compilers. By muttable arrays I mean arrays with > in-place updates, as with the MArray arrays (which are not > Haskell 98 conformant) found in GHC. Is such array imp

Mutable arrays in Haskell 98

2002-03-27 Thread José Romildo Malaquias
Hello. I would like to use muttable arrays in Haskell 98, with the GHC _and_ NHC98 compilers. By muttable arrays I mean arrays with in-place updates, as with the MArray arrays (which are not Haskell 98 conformant) found in GHC. Is such array implmentation available? Regards. Romildo -- Prof. J