Skip to content

Version 1.2.0

Compare
Choose a tag to compare
@pdonadeo pdonadeo released this 28 Jan 15:20
· 33 commits to master since this release

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.