package preface
Module Preface_make.Store
Building a Preface_specs.Store, a Store transformer.
Using the minimal definition
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.tImproving API
If 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
Functor
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.tComonad
If 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.tManual construction
Advanced 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.)
Building Core
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