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

Safe HaskellSafe
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

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

Sums list