Module type Free_applicative.TO_MONOID

The natural transformation for Free Applicative to Monoid.

type 'a t

The type held by the Free applicative.

type 'a f

The type held by the Preface_specs.Functor.

type monoid

The type held by the Monoid.

type natural_transformation = {
  1. transform : 'a. 'a f -> monoid;
}
val run : natural_transformation -> 'a t -> monoid

Run the natural transformation over the Free applicative.