
26 Feb
2009
26 Feb
'09
2:58 p.m.
Hello all, I'm reading stuff about the different types of arrays in Haskell ... One of the things that I don't understand If I do: import Data.Array arr = listArray (1,10) [1..] the type of arr is Array. My question is: is this array an instance of the type class defined in Data.Array.IArray? Or there is another kind of immutable boxed array somewhere in haskell libraries? The documentation makes a reference to 'the Array type exported by Data.Array.IArray' but if I do: import Data.Array.IArray arr = listArray (1,10) [1..] I get a couple of compiler errors Ciao & thanks in advance ----- FB