package base

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.16.5.tar.gz
md5=109456ad2350671ad3159cbbca993e3e
sha512=445d08b965e0d559e4046b874f611c8f36de47fa5c23a047146f48ee638588c1b73789a7adb5ead235c0ad2f44b56fd513a6d60bcb8b6c9f11566d32fd7760f2

doc/base/Base/Monad/Of_monad3/index.html

Module Monad.Of_monad3Source

The same as S except the monad type has three arguments. The second and third are always just passed through.

Parameters

module Monad : S3
module M : sig ... end

Signature

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

Same as Infix, except the monad type has three arguments. The second and third are always just passed through.

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