Copyright | (c) 2013-2015 Peter Trsko |
---|---|
License | BSD3 |
Maintainer | peter.trsko@gmail.com |
Stability | experimental |
Portability | NoImplicitPrelude |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Utilities for Endo
data type from Data.Monoid module.
- type E a = a -> a
- newtype Endo a :: * -> * = Endo {
- appEndo :: a -> a
- runEndo :: a -> Endo a -> a
- mapEndo :: (E a -> E b) -> Endo a -> Endo b
- mapEndo2 :: (E a -> E b -> E c) -> Endo a -> Endo b -> Endo c
- liftEndo :: Functor f => Endo a -> Endo (f a)
- endo :: Functor f => (E a -> f (E b)) -> Endo a -> f (Endo b)