Module Preface_make.Indexed_alt

Building a Preface_specs.Indexed_alt

Using the minimal definition

Using neutral and combine

Build a Preface_specs.INDEXED_ALT using Preface_specs.Indexed_alt.WITH_COMBINE_AND_MAP.

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

Over a Functor

Build a Preface_specs.INDEXED_ALT over a Preface_specs.INDEXED_FUNCTOR.

If you already have a Functor, you can enrich it by passing only the combine function.

module Over_functor (Functor : Preface_specs.INDEXED_FUNCTOR) (Combine : Preface_specs.Indexed_alt.WITH_COMBINE with type ('a, 'index) t = ('a, 'index) Functor.t) : Preface_specs.INDEXED_ALT with type ('a, 'index) t = ('a, 'index) Combine.t

Manual construction

Advanced way to build an Preface_specs.INDEXED_ALT, constructing and assembling a component-by-component of Preface_specs.INDEXED_ALT. (In order to provide your own implementation for some features.)

Grouping of all components

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

Building Core

module Core_over_functor (Functor : Preface_specs.INDEXED_FUNCTOR) (Req : Preface_specs.Indexed_alt.WITH_COMBINE with type ('a, 'index) t = ('a, 'index) Functor.t) : Preface_specs.Indexed_alt.CORE with type ('a, 'index) t = ('a, 'index) Req.t

Deriving Operation

Deriving Infix

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

Deriving Syntax

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