Preface_make.Indexed_altBuilding a Preface_specs.Indexed_alt
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.
module Via_map_and_combine
(Req : Preface_specs.Indexed_alt.WITH_COMBINE_AND_MAP) :
Preface_specs.INDEXED_ALT with type ('a, 'index) t = ('a, 'index) Req.tBuild 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.tAdvanced 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.)
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.tmodule 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.tmodule Core
(Req : Preface_specs.Indexed_alt.WITH_COMBINE_AND_MAP) :
Preface_specs.Indexed_alt.CORE with type ('a, 'index) t = ('a, 'index) Req.tmodule Operation
(Core : Preface_specs.Indexed_alt.CORE) :
Preface_specs.Indexed_alt.OPERATION
with type ('a, 'index) t = ('a, 'index) Core.tmodule 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.tmodule Syntax
(Core : Preface_specs.Indexed_alt.CORE) :
Preface_specs.Indexed_alt.SYNTAX
with type ('a, 'index) t = ('a, 'index) Core.t