Re: IArray (IOToDiffArray IOUArray) Bool : Why it doesn't exist ?

2007-11-13 Thread Simon Marlow
Chaddaï Fouché wrote: IOUArray Bool exists, and is even a bits array in reality (which makes it really efficient), is there any reason that DiffUArray Bool can't exist ? No good reason that I can think of, no. Cheers, Simon ___

RE: IArray

2002-02-25 Thread Simon Marlow
After reading your email i went to the discussion of IArray on the haskell doc page (http://www.haskell.org/ghc/docs/latest/set/sec-iarray.html) and am somewhat disturbed by it. There is the introduction of the following class: class HasBounds a where bounds :: Ix ix = a ix e -

Re: IArray

2002-02-24 Thread Hal Daume III
Just a quick follow-up that I meant to say in that last email. For instance, I think it would be reasonable to define tuples as instances of a HasBounds class, but that's not possible with the current definition. With my definition, I'd write: instance HasBounds (a,b) Int where { bnds _ =