Module Merge.Infix

Infix operators for manipulating merge results and promises.

open Irmin.Merge.Infix at the top of your file to use them.

Merge Result Combinators

val (>>=*) : ('a, conflict) Stdlib.result Lwt.t -> ('a -> ('b, conflict) Stdlib.result Lwt.t) -> ('b, conflict) Stdlib.result Lwt.t

>>=* is bind.

val (>|=*) : ('a, conflict) Stdlib.result Lwt.t -> ('a -> 'b) -> ('b, conflict) Stdlib.result Lwt.t

>|=* is map.

Promise Combinators

This is useful to manipulate lca results.

val (>>=?) : 'a promise -> ('a -> 'b promise) -> 'b promise

>>=? is bind_promise.

val (>|=?) : 'a promise -> ('a -> 'b) -> 'b promise

>|=? is map_promise.