package olmi

  1. Overview
  2. Docs

Describe the minimal interface for making a monad with bind function. This module could be used by OmlMonad.Make.WithBind to generate a BASIC_INTERFACE Module, for example.

include COMMON
type 'a t
val return : 'a -> 'a t

Place a value in a minimal monadic context

val bind : 'a t -> ('a -> 'b t) -> 'b t

Sequentially compose two actions, passing any value produced by the first as an argument to the second.

OCaml

Innovation. Community. Security.