Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Additive a where
Documentation
class Additive a where Source #
Represent class of things that can be added together, contains a neutral element and is commutative.
x + azero = x azero + x = x x + y = y + x
Additive Double Source # | |
Additive Float Source # | |
Additive Int Source # | |
Additive Int8 Source # | |
Additive Int16 Source # | |
Additive Int32 Source # | |
Additive Int64 Source # | |
Additive Integer Source # | |
Additive Word Source # | |
Additive Word8 Source # | |
Additive Word16 Source # | |
Additive Word32 Source # | |
Additive Word64 Source # | |
Additive Natural Source # | |
Additive CSize Source # | |
Additive Word128 Source # | |
Additive Word256 Source # | |
KnownNat n => Additive (Zn n) Source # | |
(KnownNat n, NatWithinBound Word64 n) => Additive (Zn64 n) Source # | |
Additive (CountOf ty) Source # | |
Additive (Offset ty) Source # | |