monoids-0.3.2: Deprecated: Use 'reducers'

Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Data.Group

Description

Extends Monoid to support Group operations

Synopsis

Documentation

class Monoid a => Group a whereSource

Minimal complete definition: gnegate or minus

Methods

gnegate :: a -> aSource

minus :: a -> a -> aSource

gsubtract :: a -> a -> aSource

Instances

Group a => Group (Dual a) 
Num a => Group (Sum a) 
Fractional a => Group (Product a) 
Group a => Group (Self a) 
MultiplicativeGroup g => Group (Log g) 
(Group m, Applicative f) => Group (App f m) 
(Group m, Monad f) => Group (Mon f m) 

class Multiplicative g => MultiplicativeGroup g whereSource

Minimal definition over or grecip

Methods

over :: g -> g -> gSource

x / y

under :: g -> g -> gSource

x  y

grecip :: g -> gSource