data-dword-0.3: Stick two binary words together to get a bigger one

Safe HaskellNone

Data.DoubleWord.TH

Description

Template Haskell utilities for generating double words declarations

Synopsis

Documentation

mkDoubleWordSource

Arguments

:: String

Unsigned variant type name

-> String

Unsigned variant constructor name

-> Strict

Unsigned variant higher half strictness

-> Name

Unsigned variant higher half type

-> String

Signed variant type name

-> String

Signed variant constructor name

-> Strict

Signed variant higher half strictness

-> Name

Signed variant higher half type

-> Strict

Lower half strictness

-> Name

Lower half type

-> [Name]

List of instances for automatic derivation

-> Q [Dec] 

Declare signed and unsigned binary word types built from the specified low and high halves. The high halves must have less or equal bit-length than the lover half. For each data type the following instances are declared: DoubleWord, Eq, Ord, Bounded, Enum, Num, Real, Integral, Show, Read, Hashable, Ix, Bits, BinaryWord.

mkUnpackedDoubleWordSource

Arguments

:: String

Unsigned variant type name

-> Name

Unsigned variant higher half type

-> String

Signed variant type name

-> Name

Signed variant higher half type

-> Name

Lower half type

-> [Name]

List of instances for automatic derivation

-> Q [Dec] 

mkUnpackedDoubleWord u uh s sh l is an alias for mkDoubleWord u u Unpacked uh s s Unpacked sh Unpacked l