hw-bits-0.7.0.4: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.Word

Documentation

class WordConcat a where Source #

Associated Types

type DoubleWords a Source #

Methods

leConcat :: a -> a -> DoubleWords a Source #

Concatenate two words in little-endian order of the same size into a word of twice the size.

Instances
WordConcat Word8 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Word

Associated Types

type DoubleWords Word8 :: Type Source #

WordConcat Word16 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Word

Associated Types

type DoubleWords Word16 :: Type Source #

WordConcat Word32 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Word

Associated Types

type DoubleWords Word32 :: Type Source #

class WordSplit a where Source #

Associated Types

type HalfWords a Source #

Methods

leSplit :: a -> (HalfWords a, HalfWords a) Source #

Split a word equally into two smaller words in little-endian order.

Instances
WordSplit Word16 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Word

Associated Types

type HalfWords Word16 :: Type Source #

WordSplit Word32 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Word

Associated Types

type HalfWords Word32 :: Type Source #

WordSplit Word64 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Word

Associated Types

type HalfWords Word64 :: Type Source #