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

Module Monad.Of_monad2Source

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

Parameters

module Monad : S2
module M : sig ... end

Signature

Sourceval (>>=) : ('a, 'e) M.t -> ('a -> ('b, 'e) M.t) -> ('b, 'e) M.t
Sourceval (>>|) : ('a, 'e) M.t -> ('a -> 'b) -> ('b, 'e) M.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 : ('a, 'e) M.t -> f:('a -> ('b, 'e) M.t) -> ('b, 'e) M.t
Sourceval return : 'a -> ('a, _) M.t
Sourceval map : ('a, 'e) M.t -> f:('a -> 'b) -> ('b, 'e) M.t
Sourceval join : (('a, 'e) M.t, 'e) M.t -> ('a, 'e) M.t
Sourceval ignore_m : (_, 'e) M.t -> (unit, 'e) M.t
Sourceval all : ('a, 'e) M.t list -> ('a list, 'e) M.t
Sourceval all_unit : (unit, 'e) M.t list -> (unit, 'e) M.t
OCaml

Innovation. Community. Security.