[Haskell-beginners] Array and IArray
Francesco Bochicchio
bieffe62 at gmail.com
Thu Feb 26 14:58:02 EST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090226/d5c28007/attachment.htm
More information about the Beginners
mailing list