package olmi

  1. Overview
  2. Docs

Module type OlmiInterfaces.JOINSource

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

include COMMON
Sourcetype 'a t
Sourceval return : 'a -> 'a t

Place a value in a minimal monadic context

Sourceval join : 'a t t -> 'a t

The join function is the conventional monad join operator. It is used to remove one level of monadic structure, projecting its bound argument into the outer level.

Sourceval fmap : ('a -> 'b) -> 'a t -> 'b t

Sequential application