Module Preface_make.Indexed_monad

Building a Preface_specs.Indexed_monad

Using the minimal definition

Using return and bind

Build a Preface_specs.INDEXED_MONAD using Preface_specs.Indexed_monad.WITH_RETURN_AND_BIND.

Standard method, using the minimal definition of an alt to derive its full API.

Using return, map and join

Build a Preface_specs.INDEXED_MONAD using Preface_specs.Indexed_monad.WITH_RETURN_MAP_AND_JOIN.

Standard method, using the minimal definition of an alt to derive its full API.

Using return and the kleisli composition

Build a Preface_specs.INDEXED_MONAD using Preface_specs.Indexed_monad.WITH_RETURN_AND_KLEISLI_COMPOSITION.

Standard method, using the minimal definition of an alt to derive its full API.

Grouping of all components

module Via (Core : Preface_specs.Indexed_monad.CORE) (Operation : Preface_specs.Indexed_monad.OPERATION with type ('a, 'index) t = ('a, 'index) Core.t) (Infix : Preface_specs.Indexed_monad.INFIX with type ('a, 'index) t = ('a, 'index) Core.t) (Syntax : Preface_specs.Indexed_monad.SYNTAX with type ('a, 'index) t = ('a, 'index) Core.t) : Preface_specs.INDEXED_MONAD with type ('a, 'index) t = ('a, 'index) Core.t

Building Core

Deriving Operation

Deriving Syntax

module Syntax (Core : Preface_specs.Indexed_monad.CORE) : Preface_specs.Indexed_monad.SYNTAX with type ('a, 'index) t = ('a, 'index) Core.t

Deriving Infix

module Infix (Core : Preface_specs.Indexed_monad.CORE) (Operation : Preface_specs.Indexed_monad.OPERATION with type ('a, 'index) t = ('a, 'index) Core.t) : Preface_specs.Indexed_monad.INFIX with type ('a, 'index) t = ('a, 'index) Core.t