| Copyright | 2016 John Ky |
|---|---|
| License | MIT |
| Safe Haskell | None |
| Language | Haskell2010 |
HaskellWorks.Data.Bits.BitWise
Contents
Description
Succinct operations.
Bit map
class BitWise a where Source #
Class of values that have bit wise logical operations
Class of values that have shift operations
class TestBit a where Source #
Minimal complete definition
Methods
(.?.) :: a -> Position -> Bool infixl 9 Source #
Test whether the bit ad the given offset is set
Instances
| TestBit Bool Source # | |
| TestBit Int Source # | |
| TestBit Word8 Source # | |
| TestBit Word16 Source # | |
| TestBit Word32 Source # | |
| TestBit Word64 Source # | |
| TestBit [Bool] Source # | |
| TestBit (Naive Word8) Source # | |
| TestBit (Naive Word16) Source # | |
| TestBit (Naive Word32) Source # | |
| TestBit (Naive Word64) Source # | |
| TestBit (Vector Word8) Source # | |
| TestBit (Vector Word16) Source # | |
| TestBit (Vector Word32) Source # | |
| TestBit (Vector Word64) Source # | |
| TestBit (Vector Word8) Source # | |
| TestBit (Vector Word16) Source # | |
| TestBit (Vector Word32) Source # | |
| TestBit (Vector Word64) Source # | |
| TestBit a => TestBit (BitShown a) Source # | |