Version 1.2.0
New feature in the ppx extension: with the option submodule = true
a submodule Lens will be generated to avoid namespace pollution.
Example from the tests:
module M_with_module : sig
type car = {
make : string;
model: string;
mileage: int;
} [@@deriving lens { submodule = true }]
end = struct
type car = {
make : string;
model: string;
mileage: int;
} [@@deriving lens { submodule = true }]
end
Thanks to @orbifx for opening an issue (#5) and to @didier-wenzek for the implementation.