newAddrArray# and other things

Hal Daume III hdaume@ISI.EDU
Fri, 25 Jan 2002 15:04:12 -0800 (PST)


Okay, one quick question:

  what do i have to import to get newAddrArray#, readAddrArray#, etc.?

And, secondly, a correction to the documentation:

  under the "Allocation" section (7.2.14.1), It says:

 newCharArray#   :: Int# -> State# s -> (# State# s, MutableByteArray# s
elt #)
 newIntArray#    :: Int# -> State# s -> (# State# s, MutableByteArray# s
elt #)
 newAddrArray#   :: Int# -> State# s -> (# State# s, MutableByteArray# s
elt #)
 newFloatArray#  :: Int# -> State# s -> (# State# s, MutableByteArray# s
elt #)
 newDoubleArray# :: Int# -> State# s -> (# State# s, MutableByteArray# s
elt #)

but none of those "elt"s should be there, since MutableByteArray# has kind
* -> * (it looks like someone just copied and pasted the type signature of
newArray#).

 - Hal


--
Hal Daume III

 "Computer science is no more about computers    | hdaume@isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume