package irmin

  1. Overview
  2. Docs
On This Page
  1. Useful operators
Legend:
Library
Module
Module type
Parameter
Class
Class type

Useful merge operators.

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

Useful operators

val ok : 'a -> 'a result Lwt.t

Return `Ok x.

val conflict : ('a, unit, string, 'b result Lwt.t) Pervasives.format4 -> 'a

Return `Conflict str.

val (>>|) : 'a result Lwt.t -> ('a -> 'b result Lwt.t) -> 'b result Lwt.t

Same as bind.

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

Same as promise_bind.

OCaml

Innovation. Community. Security.