Here we try to provide implementations for zero and one
by making the modulus optional.
We have to provide non-modulus operations for the cases
where both operands have Nothing modulus.
This is problematic since operations like (\/)
depend essentially on the modulus.
A working version with disabled zero and one can be found ResidueClass.
Instances5Eq, Read, Show, C
(Eq a, C a, C a) => Eq (T a)Defined in numeric-prelude-0.4.4 · Number.ResidueClass.MaybeRead a => Read (T a)Defined in numeric-prelude-0.4.4 · Number.ResidueClass.MaybeShow a => Show (T a)Defined in numeric-prelude-0.4.4 · Number.ResidueClass.Maybe(Eq a, C a) => C (T a)Defined in numeric-prelude-0.4.4 · Number.ResidueClass.Maybe(Eq a, C a) => C (T a)Defined in numeric-prelude-0.4.4 · Number.ResidueClass.Maybe