Module Test_providers.Num_printer

Num_printer is a provider for the Test_interfaces.Int_printer and Test_interfaces.Float_printer interfaces.

The structure of this file is very similar to the Eio_reader module, thus is not documented in details. Refer to Eio_reader for more info.

type t = Base.unit

In this case we decided to expose the type t and provider, to demonstrate how to override a particular binding. See test__override.ml.

If you simply wish to use this provider without overrides, use make ().

module Impl : sig ... end

In this specific example, we chose to expose the signature of the provider's implementation. This is not something that is usually required, since make already provides a way to build a provider. This is only done here for the sake of the tests, as we show different ways an interface can be built based on various parts of its implementation.