variation-0.1.1.0: nominal value with possible variations

Safe HaskellSafe
LanguageHaskell2010

Data.Monoid1

Synopsis

Documentation

class Unit1 m where Source #

the class of containers with a "nil" element

Minimal complete definition

empty1

Methods

empty1 :: m a Source #

Instances

Unit1 [] Source # 

Methods

empty1 :: [a] Source #

Unit1 First Source # 

Methods

empty1 :: First a Source #

Unit1 Last Source # 

Methods

empty1 :: Last a Source #

Unit1 IntMap Source # 

Methods

empty1 :: IntMap a Source #

Unit1 m => Unit1 (WrappedMonad m) Source # 

Methods

empty1 :: WrappedMonad m a Source #

Unit1 (Map k) Source # 

Methods

empty1 :: Map k a Source #

Monoid a => Unit1 (Const * a) Source # 

Methods

empty1 :: Const * a a Source #

class Append1 m where Source #

the class of containers that can be combined regardless of type they contain

Minimal complete definition

append1

Methods

append1 :: m a -> m a -> m a Source #

Instances

Append1 [] Source # 

Methods

append1 :: [a] -> [a] -> [a] Source #

Append1 First Source # 

Methods

append1 :: First a -> First a -> First a Source #

Append1 Last Source # 

Methods

append1 :: Last a -> Last a -> Last a Source #

Append1 IntMap Source # 

Methods

append1 :: IntMap a -> IntMap a -> IntMap a Source #

Append1 m => Append1 (WrappedMonad m) Source # 
Ord k => Append1 (Map k) Source # 

Methods

append1 :: Map k a -> Map k a -> Map k a Source #

Append1 f => Append1 (Variation f) Source # 

Methods

append1 :: Variation f a -> Variation f a -> Variation f a Source #

Monoid a => Append1 (Const * a) Source # 

Methods

append1 :: Const * a a -> Const * a a -> Const * a a Source #

class (Unit1 m, Append1 m) => Monoid1 m Source #

the class of containers that form a Monoid regardless of the type they contain