package irmin

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Merge.InfixSource

Infix operators for manipulating merge results and promises.

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

Merge Result Combinators

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

>>=* is bind.

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

>|=* is map.

Promise Combinators

This is useful to manipulate lca results.

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

>>=? is bind_promise.

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

>|=? is map_promise.

OCaml

Innovation. Community. Security.