TypeCompose-0.9.14: Type composition classes & instances

Copyright(c) Conal Elliott 2007
LicenseBSD3
Maintainerconal@conal.net
Stabilityexperimental
Portabilitysynonym instance
Safe HaskellNone
LanguageHaskell98

Data.CxMonoid

Description

Context-dependent monoids

Synopsis

Documentation

type MonoidDict a = (a, a -> a -> a) Source #

Dictionary for CxMonoid.

newtype CxMonoid a Source #

Type of context-dependent monoid. Includes an explicit dictionary.

Constructors

CxMonoid 

Fields

Instances
Semigroup (CxMonoid a) Source # 
Instance details

Defined in Data.CxMonoid

Methods

(<>) :: CxMonoid a -> CxMonoid a -> CxMonoid a #

sconcat :: NonEmpty (CxMonoid a) -> CxMonoid a #

stimes :: Integral b => b -> CxMonoid a -> CxMonoid a #

Monoid (CxMonoid a) Source # 
Instance details

Defined in Data.CxMonoid

Methods

mempty :: CxMonoid a #

mappend :: CxMonoid a -> CxMonoid a -> CxMonoid a #

mconcat :: [CxMonoid a] -> CxMonoid a #

Title a => Title (CxMonoid a) Source # 
Instance details

Defined in Data.CxMonoid

Methods

title :: String -> CxMonoid a -> CxMonoid a Source #

biCxMonoid :: (MonoidDict a -> a) :<->: CxMonoid a Source #

newtype bijection