On Tue, Feb 1, 2011 at 4:40 PM, Johan Tibell <[email protected]> wrote: > On Tue, Feb 1, 2011 at 4:24 PM, Roman Leshchinskiy <[email protected]> > wrote: >>> Does cloneArray# really have to take and return a `State# s`? >> >> Oops, no, it doesn't. This was purely a case of mindless copy-pasting. > > Does this apply to any of the other primops? For your convenience, > here's the list: > > thawArray# :: Array# a -> Int# -> Int# -> State# s -> (# > State# s, MutableArray# s a #)
In particular, I'm thinking about thawArray#, it should be safe to take a copy of an immutable array at any time. Johan _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
