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

Modulenumeric-prelude-0.4.4Haskell98

Algebra.Indexable

An alternative type class for Ord which allows an ordering for dictionaries like Data.Map and Data.Set independently from the ordering with respect to a magnitude.

  • 1 type
  • 1 class
  • 4 values
classclass Eq a => C a where
#

Definition of an alternative ordering of objects independent from a notion of magnitude. For an application see MathObj.PartialFraction.

Methods

Instances7C, …
  • C IntegerDefined in numeric-prelude-0.4.4 · Algebra.Indexable
  • C TDefined in numeric-prelude-0.4.4 · Number.Peano
  • C a => C (T a)Defined in numeric-prelude-0.4.4 · Number.Complex
  • C a => C [a]Defined in numeric-prelude-0.4.4 · Algebra.Indexable
  • (Ord a, C a) => C (T a)Defined in numeric-prelude-0.4.4 · Number.Ratio
  • (C a, C a) => C (T a)Defined in numeric-prelude-0.4.4 · MathObj.Polynomial
  • (C a, C b) => C (a, b)Defined in numeric-prelude-0.4.4 · Algebra.Indexable
newtypenewtype ToOrd a
#

Wrap an indexable object such that it can be used in Data.Map and Data.Set.

Instances3Eq, Ord, Show
  • Eq a => Eq (ToOrd a)Defined in numeric-prelude-0.4.4 · Algebra.Indexable
  • C a => Ord (ToOrd a)Defined in numeric-prelude-0.4.4 · Algebra.Indexable
  • Show a => Show (ToOrd a)Defined in numeric-prelude-0.4.4 · Algebra.Indexable