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

Modulenatural-arithmetic-0.2.1.0Haskell2010

Arithmetic.Unsafe

  • 11 types
newtypenewtype Nat (n :: Nat)
#

A value-level representation of a natural number n.

Constructors

Instances1Show
  • Show (Nat n)Defined in natural-arithmetic-0.2.1.0 · Arithmetic.Unsafe
newtypenewtype Fin# (a :: Nat) where
#

Finite numbers without the overhead of carrying around a proof.

Constructors

newtypenewtype (<#) (a :: Nat) (b :: Nat) where
#

Constructors

newtypenewtype (<=#) (a :: Nat) (b :: Nat) where
#

Constructors

datadata (<) (a :: Nat) (b :: Nat) where
#

Proof that the first argument is strictly less than the second argument.

Constructors

datadata (<=) (a :: Nat) (b :: Nat) where
#

Proof that the first argument is less than or equal to the second argument.

Constructors

Instances1Category
  • Category (<=)Defined in natural-arithmetic-0.2.1.0 · Arithmetic.Unsafe
datadata (:=:) (a :: Nat) (b :: Nat) where
#

Proof that the first argument is equal to the second argument.

Constructors

Instances1Category
  • Category (:=:)Defined in natural-arithmetic-0.2.1.0 · Arithmetic.Unsafe
newtypenewtype (:=:#) (a :: Nat) (b :: Nat) where
#

Constructors