bitarray-0.0.1: Mutable and immutable bit arraysContentsIndex
Data.BitArray.IO
Description
Mutable one-dimensional packed bit arrays in the IO monad.
Synopsis
data IOBitArray
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
unsafeReadBit :: IOBitArray -> Int -> IO Bool
unsafeWriteBit :: IOBitArray -> Int -> Bool -> IO ()
unsafeFlipBit :: IOBitArray -> Int -> IO Bool
thawBitArray :: BitArray -> IO IOBitArray
unsafeThawBitArray :: BitArray -> IO IOBitArray
freezeBitArray :: IOBitArray -> IO BitArray
unsafeFreezeBitArray :: IOBitArray -> IO BitArray
Documentation
data IOBitArray
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
thawBitArray :: BitArray -> IO IOBitArray
unsafeThawBitArray :: BitArray -> IO IOBitArray
freezeBitArray :: IOBitArray -> IO BitArray
unsafeFreezeBitArray :: IOBitArray -> IO BitArray
Produced by Haddock version 2.4.1