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 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
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!