| Portability | non-portable |
|---|---|
| Stability | experimental |
| Maintainer | [email protected] |
Data.Vector.Bit
Description
- type BitVector = Vector Bool
- unpack :: Bits a => a -> BitVector
- pack :: Bits a => BitVector -> a
- unpackInteger :: Integer -> BitVector
- packInteger :: BitVector -> Integer
- unpackInt :: Int -> BitVector
- packInt :: BitVector -> Int
- pad :: Int -> BitVector -> BitVector
- padMax :: BitVector -> BitVector -> (BitVector, BitVector)
- zipPad :: BitVector -> BitVector -> Vector (Bool, Bool)
- trimLeading :: BitVector -> BitVector