package base

  1. Overview
  2. Docs
Full standard library replacement for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.17.3.tar.gz
md5=2100b0ed13fecf43be86ed45c5b2cc4d
sha512=628610caff7e124631870fa1e29661caac28bdfdb18750ee43b868037da3d65d6dd9023b4be7c4c52405679efb5e865a6632d95606a22b28a36636a6bf706ef3

doc/base/Base/Result/Error/index.html

Module Result.ErrorSource

The same as S except the monad type has two arguments. The second is always just passed through.

Sourceval (>>=) : ('e, 'a) t -> ('a -> ('e, 'b) t) -> ('e, 'b) t
Sourceval (>>|) : ('e, 'a) t -> ('a -> 'b) -> ('e, 'b) t
Sourcemodule Let_syntax : sig ... end
Sourcemodule Monad_infix : sig ... end

Same as Infix, except the monad type has two arguments. The second is always just passed through.

Sourceval bind : ('e, 'a) t -> f:('a -> ('e, 'b) t) -> ('e, 'b) t
Sourceval return : 'a -> (_, 'a) t
Sourceval map : ('e, 'a) t -> f:('a -> 'b) -> ('e, 'b) t
Sourceval join : ('e, ('e, 'a) t) t -> ('e, 'a) t
Sourceval ignore_m : ('e, _) t -> ('e, unit) t
Sourceval all : ('e, 'a) t list -> ('e, 'a list) t
Sourceval all_unit : ('e, unit) t list -> ('e, unit) t