Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities to represent and display bit sequences
Documentation
bits :: forall a. Flat a => a -> Bits Source #
The sequence of bits corresponding to the serialization of the passed value (without any final byte padding)
paddedBits :: forall a. Flat a => a -> Bits Source #
The sequence of bits corresponding to the byte-padded serialization of the passed value
asBits :: FiniteBits a => a -> Bits Source #
asBits (5::Word8) | > [False,False,False,False,False,True,False,True]