Module Data.wrapper.Endo

Monoid instance for endofunctions

Imports

Table of Content

Definitions

data Endo a

The monoid of endomorphisms under composition.

Constructors

Endo {unwrap ∷ a → a}

Member Functions

unwrapEndo 𝖆 → 𝖆 → 𝖆

access field unwrap

appEndoEndo 𝖆 → 𝖆 → 𝖆

Alias for Endo.unwrap

Instances

instance Monoid (Endo a)

The Monoid instance for Endo has functions as objects, uses Semigroupoid.Semigroupoid.• as operation and the identity is Category.Category.id.

Member Functions

mappendEndo 𝖆Endo 𝖆Endo 𝖆
infixr  13
 Endo f <> Endo g = Endo (f . g)   
mconcat[Endo 𝖆]Endo 𝖆

inherited from Monoid.mconcat

memptyEndo 𝖆
 Endo id   
mtimesIntEndo 𝖆 → Endo 𝖆

inherited from Monoid.mtimes

sconcat[Endo 𝖆]Endo 𝖆

inherited from Semigroup.sconcat

stimesIntEndo 𝖆 → Endo 𝖆

inherited from Semigroup.stimes

Functions and Values by Type

(a → a) → Endo a

Endo.Endo

Endo 𝖆 → Endo 𝖆 → Endo 𝖆

Monoid_Endo.mappend

Endo 𝖆 → 𝖆 → 𝖆

Endo.unwrap

[Endo 𝖆] → Endo 𝖆

Monoid_Endo.sconcat, Monoid_Endo.mconcat

IntEndo 𝖆 → Endo 𝖆

Monoid_Endo.stimes, Monoid_Endo.mtimes

𝖆 → Bool

Endo.has$unwrap

Endo 𝖆

Monoid_Endo.mempty

Endo 𝖆 → (-> 𝖆 𝖆→𝖇→𝖇) → Endo 𝖇

Endo.chg$unwrap

Endo 𝖆 → (𝖇→𝖇) → Endo 𝖇

Endo.upd$unwrap

Valid HTML 4.01 Strict