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

Module Monad.Of_monad_indexedSource

The same as S except the monad type has three arguments. The second and third are composed across all computation.

Parameters

module Monad : S_indexed
module M : sig ... end

Signature

Sourceval (>>=) : ('a, 'i, 'j) M.t -> ('a -> ('b, 'j, 'k) M.t) -> ('b, 'i, 'k) M.t
Sourceval (>>|) : ('a, 'i, 'j) M.t -> ('a -> 'b) -> ('b, 'i, 'j) 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 composed across all computation.

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

Innovation. Community. Security.