Created
January 20, 2017 20:59
-
-
Save deque-blog/47f74815c994ef89591b39b47568b50e to your computer and use it in GitHub Desktop.
This file contains 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
type Algebra f = f (Fix f) -> Fix f | |
comp :: Algebra f -> Algebra f -> Algebra f | |
comp f g = f . unFix . g | |
compAll :: Foldable t => t (Algebra f) -> Algebra f | |
compAll fs = foldr1 comp fs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment