bits-extra-0.0.1.2

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 # 
BitSize Int Source # 
BitSize Int8 Source # 
BitSize Int16 Source # 
BitSize Int32 Source # 
BitSize Int64 Source # 
BitSize Word Source # 
BitSize Word8 Source # 
BitSize Word16 Source # 
BitSize Word32 Source # 
BitSize Word64 Source # 
BitSize () Source # 

Methods

bitSize :: () -> Int Source #

bitCount :: () -> Word64 Source #

BitSize a => BitSize [a] Source # 

Methods

bitSize :: [a] -> Int Source #

bitCount :: [a] -> Word64 Source #

BitSize a => BitSize (Identity a) Source # 
(BitSize a, Storable a) => BitSize (Vector a) Source # 
BitSize a => BitSize (Vector a) Source #