[Haskell-cafe] Re: Difficult memory leak in array processing
john at repetae.net
Thu Nov 23 17:11:25 EST 2006
On Thu, Nov 23, 2006 at 10:13:25PM +0100, Udo Stenzel wrote:
> apfelmus at quantentunnel.de wrote:
> > >> (lo, hi) <- getBounds buf
> > >
> > > to
> > >
> > > let (lo,hi) = bounds buf
> > The interface changed between GHC 6.4.2 and 6.6.
> > But no honorable Haskell paladin would ever dare to use UndeadArrays.
> Hm, and 'bounds' is simply gone? Hope that doesn't bite in an
> unexpected way.
bounds is only gone for mutable arrays. Since they might change size
you need to use the monad to get at their bounds. 'bounds' still exists
with the same interface for immutable arrays.
John Meacham - ⑆repetae.net⑆john⑈
More information about the Haskell-Cafe