hughperkins:
> 
>    On 8/10/07, Donald Bruce Stewart <[EMAIL PROTECTED]>
>    wrote:
> 
>      It's using bit arrays.
> 
>    Well I'm a total Haskell newbie, and you're using Haskell to
>    write imperative code, so it's really hard for me to read,
>    but looking at your code, you have: 
>
>       (IOUArray Int Bool) -- an array of Bool
> 
>    Bool is a 32-bit value in Haskell AFAIK?  (or possibly a
>    machine-dependent sized value, but certainly not a bit?)

No, STUArray s Int Bool is a bit array.
Look at the space use. Or try replacing Bool with Word32, and see what happens.

-- Don
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to