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

Modulenumeric-prelude-0.4.4Haskell98

MathObj.Monoid

Synopsis
newtypenewtype GCD a

It is only a monoid for non-negative numbers.

idt <*> GCD (-2) = GCD 2

Thus, use this Monoid only for non-negative numbers!

Constructors

Instances3Eq, Show, C
  • Eq a => Eq (GCD a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • Show a => Show (GCD a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • C a => C (GCD a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
newtypenewtype LCM a
#

Constructors

Instances3Eq, Show, C
  • Eq a => Eq (LCM a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • Show a => Show (LCM a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • C a => C (LCM a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
newtypenewtype Min a

Nothing is the largest element.

Constructors

Instances3Eq, Show, C
  • Eq a => Eq (Min a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • Show a => Show (Min a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • Ord a => C (Min a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
newtypenewtype Max a

Nothing is the smallest element.

Constructors

Instances3Eq, Show, C
  • Eq a => Eq (Max a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • Show a => Show (Max a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid
  • Ord a => C (Max a)Defined in numeric-prelude-0.4.4 · MathObj.Monoid