-
-
Save MarcelineVQ/38be8c9784c419295dd44e1fbbfe4526 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
foo :: Fold a c -> Fold b d -> Fold (These a b) (These c d) | |
foo (Fold a b c) (Fold x y z) = Fold _step _initial _extract | |
foo :: Fold a c -> Fold b d -> Fold (These a b) (These c d) | |
foo (Fold a b c) (Fold d e f) = Fold (\ex t -> these (a ex) (\_ -> ex) (\eh _ -> a ex eh) t) b (\ex -> This (c ex)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment