package base

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Monad.Make2Source

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

Parameters

module X : Basic2

Signature

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

Innovation. Community. Security.