Preface_make.StoreBuilding a Preface_specs.Store, a Store transformer.
Build an Preface_specs.STORE over an Inner Preface_specs.COMONAD.
module Over_comonad
(C : Preface_specs.COMONAD)
(Store : Preface_specs.Types.T0) :
Preface_specs.STORE with type store = Store.t and type 'a comonad = 'a C.tIf there are complementary implementations to Preface_specs.COMONAD attached to the Inner Preface_specs.COMONAD type, it is possible to promote the Preface_specs.STORE API with these complementary implementations
If the Inner Preface_specs.COMONAD is also a Preface_specs.FUNCTOR, the Store comonad is also a Preface_specs.FUNCTOR.
module Functor
(F : Preface_specs.FUNCTOR)
(Store : Preface_specs.Types.T0) :
Preface_specs.FUNCTOR with type 'a t = (Store.t -> 'a) F.t * Store.tIf the Inner Preface_specs.COMONAD is also a Preface_specs.COMONAD, the Store comonad is also a Preface_specs.COMONAD (this is this functor which is used in the full API definition).
module Comonad
(C : Preface_specs.COMONAD)
(Store : Preface_specs.Types.T0) :
Preface_specs.COMONAD with type 'a t = (Store.t -> 'a) C.t * Store.tAdvanced way to build an Preface_specs.STORE, constructing and assembling a component-by-component of Preface_specs.STORE. (In order to provide your own implementation for some features.)
module Core_over_comonad
(C : Preface_specs.COMONAD)
(Store : Preface_specs.Types.T0) :
Preface_specs.Store.CORE
with type store = Store.t
and type 'a comonad = 'a C.t