Preface_make.DivisibleBuilding a Preface_specs.Divisible
Build a Preface_specs.DIVISBLE using Preface_specs.Divisible.WITH_DIVIDE_AND_CONQUER. contramap will be derived using divide and conquer.
Standard method, using the minimal definition of a Divisible to derive its full API.
module Via_divide_and_conquer
(Req : Preface_specs.Divisible.WITH_DIVIDE_AND_CONQUER) :
Preface_specs.DIVISIBLE with type 'a t = 'a Req.tBuild a Preface_specs.DIVISBLE using Preface_specs.Divisible.WITH_CONTRAMAP_AND_DIVIDE_AND_CONQUER.
Standard method, using the minimal definition of a Divisible to derive its full API.
module Via_contramap_and_divide_and_conquer
(Req : Preface_specs.Divisible.WITH_CONTRAMAP_AND_DIVIDE_AND_CONQUER) :
Preface_specs.DIVISIBLE with type 'a t = 'a Req.tProduces a Preface_specs.DIVISBLE from a Preface_specs.CONTRAVARIANT.
module Over_contravariant
(Contravariant : Preface_specs.Contravariant.CORE)
(Req :
Preface_specs.Divisible.WITH_DIVIDE_AND_CONQUER
with type 'a t = 'a Contravariant.t) :
Preface_specs.DIVISIBLE with type 'a t = 'a Req.tAdvanced way to build an Preface_specs.DIVISBLE, constructing and assembling a component-by-component of Preface_specs.DIVISBLE. (In order to provide your own implementation for some features.)
module Via
(Core : Preface_specs.Divisible.CORE)
(Operation : Preface_specs.Divisible.OPERATION with type 'a t = 'a Core.t)
(Infix : Preface_specs.Divisible.INFIX with type 'a t = 'a Operation.t) :
Preface_specs.DIVISIBLE with type 'a t = 'a Infix.tmodule Core_via_divide_and_conquer
(Req : Preface_specs.Divisible.WITH_DIVIDE_AND_CONQUER) :
Preface_specs.Divisible.CORE with type 'a t = 'a Req.tmodule Core_via_contramap_and_divide_and_conquer
(Req : Preface_specs.Divisible.WITH_CONTRAMAP_AND_DIVIDE_AND_CONQUER) :
Preface_specs.Divisible.CORE with type 'a t = 'a Req.tmodule Operation
(Core : Preface_specs.Divisible.CORE) :
Preface_specs.Divisible.OPERATION with type 'a t = 'a Core.tmodule Infix
(Core : Preface_specs.Divisible.CORE)
(Operation : Preface_specs.Divisible.OPERATION with type 'a t = 'a Core.t) :
Preface_specs.Divisible.INFIX with type 'a t = 'a Operation.t