Module Preface_make.Indexed_alternative

Building a Preface_specs.Indexed_alternative

Using the minimal definition

Using pure, apply, neutral and combine

Build a Preface_specs.INDEXED_ALTERNATIVE using Preface_specs.Indexed_alternative.WITH_APPLY.

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

Using pure, map, product, neutral and combine

Build a Preface_specs.INDEXED_ALTERNATIVE using Preface_specs.Indexed_alternative.WITH_MAP_AND_PRODUCT.

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

Using pure, lift2, neutral and combine

Build a Preface_specs.INDEXED_ALTERNATIVE using Preface_specs.Indexed_alternative.WITH_LIFT2.

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

Over an applicative

Build a Preface_specs.INDEXED_ALTERNATIVE over an Preface_specs.INDEXED_APPLICATIVE.

If you already have an Applicative, you can enrich it by passing only combine and neutral.

Manual construction

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

Grouping of all components

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

Building Core

Deriving Operation

Deriving Syntax

Deriving Infix

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