bits-extra-0.0.2.0: Useful bitwise operations

Safe HaskellNone
LanguageHaskell2010

Data.Bits.BitSize

Documentation

class BitSize a where Source #

Minimal complete definition

bitSize

Methods

bitSize :: a -> Int Source #

bitCount :: a -> Word64 Source #

Instances
BitSize Bool Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Int Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Int8 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Int16 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Int32 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Int64 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word8 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word16 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word32 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize Word64 Source # 
Instance details

Defined in Data.Bits.BitSize

BitSize () Source # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: () -> Int Source #

bitCount :: () -> Word64 Source #

BitSize a => BitSize [a] Source # 
Instance details

Defined in Data.Bits.BitSize

Methods

bitSize :: [a] -> Int Source #

bitCount :: [a] -> Word64 Source #

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

Defined in Data.Bits.BitSize

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

Defined in Data.Bits.BitSize

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

Defined in Data.Bits.BitSize