commutative-0.0.1.1: Commutative binary operations.

Safe HaskellNone
LanguageHaskell2010

Data.Mergeable

Documentation

class Mergeable t where Source

Minimal complete definition

Nothing

Methods

mergeMap :: CommutativeId m => (a -> m) -> t a -> m Source

merge :: (a -> b -> b) -> b -> t a -> b Source

Instances

class Functor t => Mergeable1 t where Source

Minimal complete definition

Nothing

Methods

mergeMap1 :: Commutative m => (a -> m) -> t a -> m Source

merge1 :: Commutative m => t m -> m Source

Instances

Mergeable1 NonEmpty Source