Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.BitArray.IO
Description
Mutable one-dimensional packed bit arrays in the IO monad.
- 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 Source
getBitArrayBounds :: IOBitArray -> IO (Int, Int) Source
newBitArray :: (Int, Int) -> Bool -> IO IOBitArray Source
unsafeReadBit :: IOBitArray -> Int -> IO Bool Source
unsafeWriteBit :: IOBitArray -> Int -> Bool -> IO () Source
unsafeFlipBit :: IOBitArray -> Int -> IO Bool Source
thawBitArray :: BitArray -> IO IOBitArray Source
freezeBitArray :: IOBitArray -> IO BitArray Source