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) Source #

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

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

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

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

flips the bit and returns the old value

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

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

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