bitarray-0.0.1.1: Mutable and immutable bit arrays

Safe HaskellNone
LanguageHaskell98

Data.BitArray.IO

Description

Mutable one-dimensional packed bit arrays in the IO monad.

Synopsis

Documentation

getBitArrayBounds :: IOBitArray -> IO (Int, Int) #

newBitArray :: (Int, Int) -> Bool -> IO IOBitArray #

readBit :: IOBitArray -> Int -> IO Bool #

writeBit :: IOBitArray -> Int -> Bool -> IO () #

flipBit :: IOBitArray -> Int -> IO Bool #

flips the bit and returns the old value

unsafeReadBit :: IOBitArray -> Int -> IO Bool #

unsafeWriteBit :: IOBitArray -> Int -> Bool -> IO () #

unsafeFlipBit :: IOBitArray -> Int -> IO Bool #