Add comment about Endo

This commit is contained in:
Lysxia 2020-03-01 15:15:00 -05:00
parent 1b1ccca6af
commit 45385ca0be

View File

@ -18,6 +18,12 @@ import Fcf.Combinators (Pure, type (<=<))
import Fcf.Class.Monoid
-- | Endofunctions.
--
-- === __Details__
--
-- This is is used in the default implementation of
-- 'Fcf.Class.Foldable.Foldr' in terms of
-- 'Fcf.Class.Foldable.FoldMap'.
newtype Endo a = Endo (a -> Exp a)
-- | Inverse of the 'Endo' constructor.