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.14.1 · lts/ghc-9.14.x · 45dd537 · 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!