[Haskell-cafe] Re: mapping unfreeze over an IntMap of IOUArrays
Don Stewart galois.com> writes: > Hmm. So you'd need to construct a new IntMap, made by fmap'ping > unsafeFreeze over each element of the old map. > For now I'll just do IntMap.map (unsafePerformIO . unsafeFreeze) Hopefully this won't come back to bite me Thanks! Chad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: mapping unfreeze over an IntMap of IOUArrays
On Tue, Nov 11, 2008 at 07:39:53PM +, Chad Scherrer wrote: > Don Stewart galois.com> writes: > > Hmm. So you'd need to construct a new IntMap, made by fmap'ping > > unsafeFreeze over each element of the old map. > > I guess if we had a Traversable instance for Data.IntMap things would be just > fine. Would this be a bad thing in any way? I don't think so. It's a straightforward instance, and its omission was an oversight. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: mapping unfreeze over an IntMap of IOUArrays
Don Stewart galois.com> writes: > Hmm. So you'd need to construct a new IntMap, made by fmap'ping > unsafeFreeze over each element of the old map. I guess if we had a Traversable instance for Data.IntMap things would be just fine. Would this be a bad thing in any way? Chad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe