[project @ 2003-01-13 11:42:16 by simonmar]
authorsimonmar <unknown>
Mon, 13 Jan 2003 11:42:16 +0000 (11:42 +0000)
committersimonmar <unknown>
Mon, 13 Jan 2003 11:42:16 +0000 (11:42 +0000)
commit110117a4fd9d3ed38036386f55772ea85c0f306d
tree9d458b8cf681c02d1b79599e5fb20b99c3025e64
parent604586274bdc939aa110379d56b92830651dc322
[project @ 2003-01-13 11:42:16 by simonmar]
UArrays should always be initialized with known elements, otherwise we
can lose referential transparency:

Prelude> :m + Data.Array.Unboxed
Prelude Data.Array.Unboxed> let f () = array (1, 5) [] :: UArray Int Int
Prelude Data.Array.Unboxed> f () == f ()
False

Noticed-by: Tomasz Zielonka <t.zielonka@students.mimuw.edu.pl>
MERGE TO STABLE
Data/Array/Base.hs