HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleghc-internal-9.1401.0Haskell2010

GHC.Internal.Data.Type.Ord

Basic operations on type-level Orderings.

Synopsis
familytype family Compare (a :: k) (b :: k) :: Ordering

Compare branches on the kind of its arguments to either compare by Symbol or Nat.

Instances3Compare
  • type Compare a b = CmpChar a bDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Type.Ord
  • type Compare a b = CmpSymbol a bDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Type.Ord
  • type Compare a b = CmpNat a bDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Type.Ord
typetype (<=) (x :: t) (y :: t) = Assert (x <=? y) (LeErrMsg x y)

Comparison (<=) of comparable types, as a constraint.

typetype (>=) (x :: t) (y :: t) = Assert (x >=? y) (GeErrMsg x y)

Comparison (>=) of comparable types, as a constraint.

typetype (>) (x :: t) (y :: t) = Assert (x >? y) (GtErrMsg x y)

Comparison (>) of comparable types, as a constraint.

typetype (<) (x :: t) (y :: t) = Assert (x <? y) (LtErrMsg x y)

Comparison (<) of comparable types, as a constraint.