Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Group is a monoid with inverse elements.
Documentation
class Monoid a => Group a where #
Group (S, *) is a monoid with inverse elements.
Requirements
- There's an identity element \(id\): \(a \diamond id = id \diamond a = a\).
- \(\diamond\) is associative: \((a \diamond b) \diamond c = a \diamond (b \diamond c)\).
- There's an inverse lement: \(a a^{-1} = a^{-1} a = 1\).
Instances
Group a => Group (Dual a) # | |
Defined in Data.Core.Group | |
Fractional a => Group (Product a) # | |
Defined in Data.Core.Group | |
Num a => Group (Sum a) # | |
Defined in Data.Core.Group | |
Fractional e => Group (Mat2x2 e) # | |
Defined in Data.Instances.Affine2d |