HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulenumtype-dk-0.5.0.3Haskell98

Numeric.NumType.DK.Integers

Summary

Type-level integers for GHC 7.8+.

We provide type level arithmetic operations. We also provide term-level arithmetic operations on proxys, and conversion from the type level to the term level.

Planned Obsolesence

We commit this package to hackage in sure and certain hope of the coming of glorious GHC integer type literals, when the sea shall give up her dead, and this package shall be rendered unto obsolescence.

  • 1 type
  • 1 class
  • 29 values
  • Cpp
  • UndecidableInstances
  • MonoLocalBinds
  • TypeFamilies
  • DataKinds
  • DeriveDataTypeable
  • AutoDeriveTypeable
  • TypeSynonymInstances
  • FlexibleContexts
  • FlexibleInstances
  • KindSignatures
  • TypeOperators
  • ExplicitNamespaces

Type-Level Integers

1 declaration

Type-level Arithmetic

10 declarations
familytype family Pred (i :: TypeInt) :: TypeInt where
#
familytype family Succ (i :: TypeInt) :: TypeInt where
#
familytype family Negate (i :: TypeInt) :: TypeInt where
#
familytype family (*) (i :: TypeInt) (i' :: TypeInt) :: TypeInt where
#

TypeInt multiplication.

Equations

familytype family (/) (i :: TypeInt) (i' :: TypeInt) :: TypeInt where
#

TypeInt division.

Equations

familytype family (^) (i :: TypeInt) (i' :: TypeInt) :: TypeInt where
#

TypeInt exponentiation.

Equations

Arithmetic on Proxies

10 declarations

Convenience Synonyms for Proxies

19 declarations

Conversion from Types to Terms

1 declaration
classclass KnownTypeInt (i :: TypeInt) where
#

Conversion to a Num.

Methods

Instances21KnownTypeInt, …