invertible-0.2.0.5: bidirectional arrows, bijective functions, and invariant functors
Data.Invertible.Monoid
Description
Bidirectional transforms for Data.Monoid.
newtype BiEndo a #
The monoid of endomorphisms under composition.
Constructors
Fields
Defined in Control.Invertible.Functor
Methods
fmap :: (a <-> b) -> BiEndo a -> BiEndo b #
Defined in Data.Invertible.Monoid
(<>) :: BiEndo a -> BiEndo a -> BiEndo a #
sconcat :: NonEmpty (BiEndo a) -> BiEndo a #
stimes :: Integral b => b -> BiEndo a -> BiEndo a #
mempty :: BiEndo a #
mappend :: BiEndo a -> BiEndo a -> BiEndo a #
mconcat :: [BiEndo a] -> BiEndo a #
dual :: a <-> Dual a #
(Un)wrap the Dual monoid.
Dual
endo :: (a -> a) <-> Endo a #
(Un)wrap the Endo monoid.
Endo
biEndo :: (a <-> a) <-> BiEndo a #
(Un)wrap the BiEndo monoid.
BiEndo
all :: Bool <-> All #
(Un)wrap the All monoid.
All
any :: Bool <-> Any #
(Un)wrap the Any monoid.
Any
sum :: a <-> Sum a #
(Un)wrap the Sum monoid.
Sum
product :: a <-> Product a #
(Un)wrap the Product monoid.
Product
first :: Maybe a <-> First a #
(Un)wrap the First monoid.
First
last :: Maybe a <-> Last a #
(Un)wrap the Last monoid.
Last
alt :: f a <-> Alt f a #