data-sword-0.1.1: Shorter binary words
Data.ShortWord.TH
Description
Template Haskell utilities for generating short words declarations
Synopsis
mkShortWord Source #
Arguments
Unsigned variant type name
Unsigned variant constructor name
Signed variant type name
Signed variant constructor name
The underlying (unsigned) type
The bit length
List of instances for automatic derivation
Declare signed and unsigned binary word types that use a subset of the bits of the specified underlying type. For each data type the following instances are declared: Typeable, Data, Eq, Ord, Bounded, Enum, Num, Real, Integral, Show, Read, Hashable, Ix, Bits, BinaryWord.
Typeable
Data
Eq
Ord
Bounded
Enum
Num
Real
Integral
Show
Read
Hashable
Ix
Bits
BinaryWord