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/ResultMonad/index.html

Module Utils.ResultMonad

The result type and a bind operator. This module is meant to be opened.

type ('a, 'b) result = ('a, 'b) Result.result =
  1. | Ok of 'a
  2. | Error of 'b

Re-export for compat

val map_error : ('a -> 'b) -> ('c, 'a) result -> ('c, 'b) result
val of_option : error:'a -> 'b option -> ('b, 'a) result
val bind : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
val (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
OCaml

Innovation. Community. Security.