package travesty
Module type Bi_traversable_types.Generic_on_applicative
Generic_on_applicative extends Generic to contain various derived operators; we use it to derive the signatures of the various On modules.
- For arity-0 types,
('l, 'r) tbecomest,'l leftbecomesleft, and'r rightbecomesright. - For arity-1 types with a fixed right type,
('l, 'r) tbecomes'l t,'l leftbecomes'l, and'r rightbecomesright. - For arity-1 types with a fixed left type,
('l, 'r) tbecomes'l t,'l leftbecomesleft, and'r rightbecomes'r. - For arity-2 types,
('l, 'r) tbecomes('l, 'r) t,'l leftbecomes'l, and'r rightbecomes'r.
include Basic_generic_on_applicative
include Generic_types.Bi_generic
module M : Base.Applicative.SM is the applicative functor over which we're bi-traversing.
map_left_m c ~f monadically traverses over the left type of c only, using f.