-
Notifications
You must be signed in to change notification settings - Fork 1
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
Contravariant hierarchy #10
Comments
Experiment: class Alternative f ⇒ Combines f where
one ∷ f (These a b) → f (a → c) → f (b → c) → f c
class Applicative f ⇒ Composes f where
two ∷ f (These a b) → f (a → b) → f (b → c) → f c class Alternative f ⇒ Selective' f where
select' ∷ f (Either a b) → f (a → c) → f (b → c) → f c |
Another experiment:
|
And if that works, why stop there? See if something like the following makes sense.
But should probably consider both
implying something like |
I think it makes more sense to have a more precise hierarchy for contravariant functors.
divide
andconquer
into two classes?lose
andchoose
into two classes?These
?Selective
functors?I need to figure out some laws that should give better guidance. For now, here is some spit-balling. All names here are subject to change.
The text was updated successfully, but these errors were encountered: