jonathanfishbein1/elm-semigroup/1.0.0

NOTE: the latest version is 1.0.2

SemiGroup

A module to define generic functions for semigroup.

Types

type SemiGroup a
= SemiGroup (a -> a -> a)

Main type.

type Sum a
= Sum a

Semigroup under addition

type Product a
= Product a

MoSemigroupnoid under multiplication.

append : SemiGroup a -> a -> a -> a

Take the way to append a semigroups.

SemiGroup types for popular types

string : SemiGroup String

Semigroup type for String.

sum : SemiGroup (Sum number)

Semigroup type for Sum.

Semigroup type for Product.

list : SemiGroup (List a)

Semigroup type for List.

array : SemiGroup (Array a)

SemiGroup type for Array.

dict : SemiGroup (Dict comparable a)

SemiGroup type for Dict.

set : SemiGroup (Set comparable)

SemiGroup type for Set.

cmd : SemiGroup (Cmd comparable)

SemiGroup type for Cmd.

sub : SemiGroup (Sub comparable)

Monoid type for Sub.