Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bit map
class BitWise a where Source #
Class of values that have bit wise logical operations
(.&.) :: a -> a -> a infixl 7 Source #
Bit-wise AND
(.|.) :: a -> a -> a infixl 5 Source #
Bit-wise OR
(.^.) :: a -> a -> a infixl 6 Source #
Bit-wise XOR
Bit-wise complement
Bit-wise value of the given type with all bits set to zero
Bit-wise value of the given type with all bits set to one
Instances
BitWise Int Source # | |
BitWise Word8 Source # | |
BitWise Word16 Source # | |
BitWise Word32 Source # | |
BitWise Word64 Source # | |
BitWise a => BitWise (Broadword a) Source # | |
Defined in HaskellWorks.Data.Bits.Types.Broadword | |
BitWise a => BitWise (Builtin a) Source # | |
Defined in HaskellWorks.Data.Bits.Types.Builtin |
Class of values that have shift operations
(.<.) :: a -> Count -> a infixl 8 Source #
Shift left by the specified count
(.>.) :: a -> Count -> a infixl 8 Source #
Shift right by the specified count
class TestBit a where Source #
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 # | |