acme-kitchen-sink-0.1.0.0: A place for dumping that does-not-feel-right code while you improve it

Safe HaskellSafe
LanguageHaskell2010

Data.Monoid.Category

Description

Monoids on category composition.

Issue #3

Synopsis

Documentation

newtype Composition c Source #

Monoid on category composition (>>>)

Constructors

Composition 

Fields

Instances

Category * c => Monoid (Composition (c a a)) Source # 

Methods

mempty :: Composition (c a a) #

mappend :: Composition (c a a) -> Composition (c a a) -> Composition (c a a) #

mconcat :: [Composition (c a a)] -> Composition (c a a) #

newtype RevComposition c Source #

Monoid on reverse category composition (<<<)

Constructors

RevComposition 

Fields

Instances

Category * c => Monoid (RevComposition (c a a)) Source # 

Methods

mempty :: RevComposition (c a a) #

mappend :: RevComposition (c a a) -> RevComposition (c a a) -> RevComposition (c a a) #

mconcat :: [RevComposition (c a a)] -> RevComposition (c a a) #

composeMany :: (Alternative m, Category cat) => m (cat a a) -> m (cat a a) Source #

Alternatives accumulator many for Composition

invComposeMany :: (Alternative m, Category cat) => m (cat a a) -> m (cat a a) Source #

Alternatives accumulator many for RevComposition