hw-bits-0.7.0.2: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.ElemFixedBitSize

Synopsis

Documentation

class ElemFixedBitSize v where Source #

Class of values that have elements of a fixed bit size

>>> elemFixedBitSize (Vector Word8)
8

Minimal complete definition

elemFixedBitSize

Associated Types

type Elem v Source #

The element type of the elemnet

Methods

elemFixedBitSize :: v -> Count Source #

Get the bit size of an element for a given composite bit-string type.

>>> elemFixedBitSize (Vector Word8)
8

Instances

ElemFixedBitSize [Bool] Source # 

Associated Types

type Elem [Bool] :: * Source #

ElemFixedBitSize [Word8] Source # 

Associated Types

type Elem [Word8] :: * Source #

ElemFixedBitSize [Word16] Source # 

Associated Types

type Elem [Word16] :: * Source #

ElemFixedBitSize [Word32] Source # 

Associated Types

type Elem [Word32] :: * Source #

ElemFixedBitSize [Word64] Source # 

Associated Types

type Elem [Word64] :: * Source #

ElemFixedBitSize (Vector Bool) Source # 

Associated Types

type Elem (Vector Bool) :: * Source #

ElemFixedBitSize (Vector Word8) Source # 

Associated Types

type Elem (Vector Word8) :: * Source #

ElemFixedBitSize (Vector Word16) Source # 

Associated Types

type Elem (Vector Word16) :: * Source #

ElemFixedBitSize (Vector Word32) Source # 

Associated Types

type Elem (Vector Word32) :: * Source #

ElemFixedBitSize (Vector Word64) Source # 

Associated Types

type Elem (Vector Word64) :: * Source #

ElemFixedBitSize (Vector Bool) Source # 

Associated Types

type Elem (Vector Bool) :: * Source #

ElemFixedBitSize (Vector Word8) Source # 

Associated Types

type Elem (Vector Word8) :: * Source #

ElemFixedBitSize (Vector Word16) Source # 

Associated Types

type Elem (Vector Word16) :: * Source #

ElemFixedBitSize (Vector Word32) Source # 

Associated Types

type Elem (Vector Word32) :: * Source #

ElemFixedBitSize (Vector Word64) Source # 

Associated Types

type Elem (Vector Word64) :: * Source #