patch applied (packages/base): FIX #1131 (newArray_ allocates an array full of garbage)

Simon Marlow simonmar at microsoft.com
Wed Jul 4 06:49:38 EDT 2007


Wed Jul  4 03:20:20 PDT 2007  Simon Marlow <simonmar at microsoft.com>
  * FIX #1131 (newArray_ allocates an array full of garbage)
  Now newArray_ returns a deterministic result in the ST monad, and
  behaves as before in other contexts.  The current newArray_ is renamed
  to unsafeNewArray_; the MArray class therefore has one more method
  than before.

    M ./Data/Array/Base.hs -59 +122
    M ./Data/Array/IO/Internals.hs -34 +68
    M ./Data/Array/Storable.hs -1 +3


More information about the Cvs-libraries mailing list