hw-bits-0.7.0.1: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.BitLength

Contents

Synopsis

Bit map

class BitLength v where Source #

Minimal complete definition

bitLength

Methods

bitLength :: v -> Count Source #

Number of bits in a value including ones and zeros.

endPosition :: v -> Position Source #

Number of bits in a value including ones and zeros as a position.

Instances

BitLength Bool Source # 
BitLength Word8 Source # 
BitLength Word16 Source # 
BitLength Word32 Source # 
BitLength Word64 Source # 
BitLength [Bool] Source # 
BitLength [Word8] Source # 
BitLength [Word16] Source # 
BitLength [Word32] Source # 
BitLength [Word64] Source # 
BitLength (Naive Word8) Source # 
BitLength (Naive Word16) Source # 
BitLength (Naive Word32) Source # 
BitLength (Naive Word64) Source # 
BitLength (Vector Word8) Source # 
BitLength (Vector Word16) Source # 
BitLength (Vector Word32) Source # 
BitLength (Vector Word64) Source # 
BitLength (Vector Word8) Source # 
BitLength (Vector Word16) Source # 
BitLength (Vector Word32) Source # 
BitLength (Vector Word64) Source #