Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.BitArray.ST
Description
Mutable one-dimensional packed bit arrays in the (strict) ST monad.
Synopsis
- data STBitArray s
- getBitArrayBounds :: STBitArray s -> ST s (Int, Int)
- newBitArray :: (Int, Int) -> Bool -> ST s (STBitArray s)
- readBit :: STBitArray s -> Int -> ST s Bool
- writeBit :: STBitArray s -> Int -> Bool -> ST s ()
- flipBit :: STBitArray s -> Int -> ST s Bool
- unsafeReadBit :: STBitArray s -> Int -> ST s Bool
- unsafeWriteBit :: STBitArray s -> Int -> Bool -> ST s ()
- unsafeFlipBit :: STBitArray s -> Int -> ST s Bool
- thawBitArray :: BitArray -> ST s (STBitArray s)
- unsafeThawBitArray :: BitArray -> ST s (STBitArray s)
- freezeBitArray :: STBitArray s -> ST s BitArray
- unsafeFreezeBitArray :: STBitArray s -> ST s BitArray
Documentation
data STBitArray s Source #
getBitArrayBounds :: STBitArray s -> ST s (Int, Int) Source #
newBitArray :: (Int, Int) -> Bool -> ST s (STBitArray s) Source #
unsafeReadBit :: STBitArray s -> Int -> ST s Bool Source #
unsafeWriteBit :: STBitArray s -> Int -> Bool -> ST s () Source #
unsafeFlipBit :: STBitArray s -> Int -> ST s Bool Source #
thawBitArray :: BitArray -> ST s (STBitArray s) Source #
unsafeThawBitArray :: BitArray -> ST s (STBitArray s) Source #
freezeBitArray :: STBitArray s -> ST s BitArray Source #
unsafeFreezeBitArray :: STBitArray s -> ST s BitArray Source #