HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulenatural-arithmetic-0.2.4.0Haskell2010

Arithmetic.Unsafe

Synopsis
newtypenewtype Nat (n :: Nat)

A value-level representation of a natural number n.

Constructors

Instances1Show
  • Show (Nat n)Defined in natural-arithmetic-0.2.4.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.4.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.4.0 · Arithmetic.Unsafe
newtypenewtype (:=:#) (a :: Nat) (b :: Nat) where
#

Constructors