Created
May 19, 2017 21:02
-
-
Save abiodun0/7e999e921dc6f0a1ab95578805842ddc to your computer and use it in GitHub Desktop.
Endo Functors and Monads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| instance Monoid (Endofunctor a) where | |
| append :: (a -> m a) -> (a -> m a) -> (a -> m a)` | |
| append = (>=>) | |
| empty :: (a -> m a) | |
| empty = return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment