class Contravariant f => Divise f
The contravariant analogue of Apply; it is
Divisible without conquer.
If one thinks of f a as a consumer of as, then divise allows one
to handle the consumption of a value by splitting it between two
consumers that consume separate parts of a.
divise takes the "splitting" method and the two sub-consumers, and
returns the wrapped/combined consumer.
All instances of Divisible should be instances of Divise with
.divise = divide
If a function is polymorphic over (as opposed to @Divise fDivisible
f@), we can provide a stronger guarantee: namely, that any input consumed
will be passed to at least one sub-consumer. With , said input
could potentially disappear into the void, as this is possible with
Divisible fconquer.
Mathematically, a functor being an instance of Divise means that it is
"semigroupoidal" with respect to the contravariant (tupling) Day
convolution. That is, it is possible to define a function @(f `Day` f)
a -> f a@ in a way that is associative.
divise :: (a -> (b, c)) -> f b -> f c -> f a
Takes a "splitting" method and the two sub-consumers, and returns the wrapped/combined consumer.