Hello Andrew,

Sunday, May 18, 2008, 3:42:23 PM, you wrote:

> Isn't there some function kicking around somewhere for acessing arrays
> without the bounds check? Similarly, I'm sure I remember the Data.Bits
> bounds check being mentioned before, and somebody saying they had [or 
> were going to?] make an unsafe variant available. I've looked around the
> library documentation and I'm not seeing anything... any hints?

unsafeRead/Write

(I# a) <<# (I# b) = (I# (a `iShiftL#` b))
(I# a) >># (I# b) = (I# (a `uncheckedIShiftRL#` b))


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to