bits-extra-0.0.1.3: Useful bitwise operations

Safe HaskellNone
LanguageHaskell2010

Data.Bits.BitSize

Documentation

class BitSize a where #

Minimal complete definition

bitSize

Methods

bitSize :: a -> Int #

bitCount :: a -> Word64 #

Instances
BitSize Bool # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Bool -> Int #

bitCount :: Bool -> Word64 #

BitSize Int # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Int -> Int #

bitCount :: Int -> Word64 #

BitSize Int8 # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Int8 -> Int #

bitCount :: Int8 -> Word64 #

BitSize Int16 # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Int16 -> Int #

bitCount :: Int16 -> Word64 #

BitSize Int32 # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Int32 -> Int #

bitCount :: Int32 -> Word64 #

BitSize Int64 # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Int64 -> Int #

bitCount :: Int64 -> Word64 #

BitSize Word # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Word -> Int #

bitCount :: Word -> Word64 #

BitSize Word8 # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Word8 -> Int #

bitCount :: Word8 -> Word64 #

BitSize Word16 # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word32 # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word64 # 
Instance details

Defined in Data.Bits.BitSize

BitSize () # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: () -> Int #

bitCount :: () -> Word64 #

BitSize a => BitSize [a] # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: [a] -> Int #

bitCount :: [a] -> Word64 #

BitSize a => BitSize (Identity a) # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Identity a -> Int #

bitCount :: Identity a -> Word64 #

(BitSize a, Storable a) => BitSize (Vector a) # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Vector a -> Int #

bitCount :: Vector a -> Word64 #

BitSize a => BitSize (Vector a) # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: Vector a -> Int #

bitCount :: Vector a -> Word64 #