Test_providers.Num_printerNum_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.
val provider :
(t, [ Test_interfaces.Int_printer.tag | Test_interfaces.Float_printer.tag ])
Provider.tval make :
t ->
[ Test_interfaces.Int_printer.tag | Test_interfaces.Float_printer.tag ]
Provider.packedIf you simply wish to use this provider without overrides, use make ().
module Impl : sig ... endIn 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.