Module type Choice.WITH_CONTRAMAP_FST_AND_MAP_SND_AND_RIGHT

Minimal interfaces using contramap_fst and map_snd and right.

type ('a, 'b) t

The type held by the Choice Profunctor.

val contramap_fst : ('a -> 'b) -> ('b, 'c) t -> ('a, 'c) t

Contramapping over the first argument.

val map_snd : ('b -> 'c) -> ('a, 'b) t -> ('a, 'c) t

Mapping over the second argument.

val right : ('a, 'b) t -> (('c, 'a) Stdlib.Either.t, ('c, 'b) Stdlib.Either.t) t

Act on the right parameter of the sum.