-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composing functors and a bifunctor. #10
Comments
In newtype Biff p f g a b = Biff { runBuff :: p (f a) (g b) } With that you can get use things like I left it off here because it was pretty much ad hoc, but I'd be open to reintroducing it. I also had another one for composing a functor on the outside, which had a name that escapes me. |
If you're okay with trademark lawsuits from Universal, perhaps |
Sold. Write a patch. ;) |
I found myself needing to compose a bifunctor and a functor in a way that preserved bifunctorality, and I think that this code might be generally useful. I'm not really sold on the naming but I hope it's clear enough, especially with the type signatures; if there's a better name for this sort of thing that comes from theory or just intuition, please feel free to change it.
The text was updated successfully, but these errors were encountered: