It is only a monoid for non-negative numbers.
idt <*> GCD (-2) = GCD 2Thus, use this Monoid only for non-negative numbers!
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Modulenumeric-prelude-0.4.4Haskell98
It is only a monoid for non-negative numbers.
idt <*> GCD (-2) = GCD 2Thus, use this Monoid only for non-negative numbers!