Created
January 30, 2016 19:03
-
-
Save fizruk/b3b2999a913a5783554c to your computer and use it in GitHub Desktop.
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
class Unit1 a | |
instance Unit1 a | |
gfoldMap :: (Deciding1 Unit1 f, Monoid m) => (a -> m) -> f a -> m | |
gfoldMap = flip . getOp $ deciding1 (Proxy :: Proxy Unit1) (Op mempty) (Op (flip id)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment