package odoc

  1. Overview
  2. Docs
OCaml documentation generator

Install

Dune Dependency

Authors

Maintainers

Sources

odoc-2.1.1.tbz
sha256=f574dbd28cd0fc3a2b95525c4bb95ddf6d1f6408bb4fe12157fa537884f987fd
sha512=1c545c281a7022a167f028fff8cec6fb3f2f82da0881431be74e7a4281c5353ed83bfbdb4d9d9e08af6755dbe3505c052c5e5b58cdeb08c57aed5e89c0f15e91

doc/odoc.xref2/Odoc_xref2/Utils/EitherMonad/index.html

Module Utils.EitherMonad

type ('a, 'b) t =
  1. | Left of 'a
  2. | Right of 'b
val return : 'a -> ('b, 'a) t
val return_left : 'a -> ('a, 'b) t
val bind : ('a, 'b) t -> ('b -> ('a, 'c) t) -> ('a, 'c) t
val bind_left : ('a, 'b) t -> ('a -> ('c, 'b) t) -> ('c, 'b) t
val (>>=) : ('a, 'b) t -> ('b -> ('a, 'c) t) -> ('a, 'c) t
val of_option : left:'a -> 'b option -> ('a, 'b) t
val of_result : ('a, 'b) Result.result -> ('b, 'a) t
OCaml

Innovation. Community. Security.