hsdev-0.1.3.4: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Group

Synopsis

Documentation

class Eq a => Group a where Source

Group is monoid with invertibility But for our purposes we prefer two functions: add and sub.

Methods

add :: a -> a -> a Source

sub :: a -> a -> a Source

zero :: a Source

Instances

Group Structured 
Group Database 
Eq a => Group [a] 
Ord a => Group (Set a) 
(Ord k, Group a) => Group (Map k a) 

groupSum :: Group a => [a] -> a Source

Sums list