HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduledata-dword-0.3.2.1Haskell2010

Data.DoubleWord.TH

Template Haskell utilities for generating double words declarations

  • 2 values
valuemkDoubleWord
  1. :: String

    Unsigned variant type name

  2. -> String

    Unsigned variant constructor name

  3. -> Bang

    Unsigned variant higher half strictness

  4. -> Name

    Unsigned variant higher half type

  5. -> String

    Signed variant type name

  6. -> String

    Signed variant constructor name

  7. -> Bang

    Signed variant higher half strictness

  8. -> Name

    Signed variant higher half type

  9. -> Bang

    Lower half strictness

  10. -> Name

    Lower half type

  11. -> [Name]

    List of instances for automatic derivation

  12. -> 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.