Free_applicative.TO_MONOID
The natural transformation for Free Applicative to Monoid.
Free Applicative
Monoid
type 'a t
The type held by the Free applicative.
Free applicative
type 'a f
The type held by the Preface_specs.Functor.
Preface_specs.Functor
type monoid
The type held by the Monoid.
type natural_transformation = {
transform : 'a. 'a f -> monoid;
}
val run : natural_transformation -> 'a t -> monoid
Run the natural transformation over the Free applicative.