Astrocoders / lenses-ppx

GADT lenses
MIT License
105 stars 10 forks source link

Use `type t` as main instead of original type name #2

Closed fakenickels closed 4 years ago

fakenickels commented 5 years ago
module StateLenses = {
  type t = {
    email: string,
    age: int,
  };
};
baransu commented 4 years ago

AFAIK currently we support any type name. It can be state or t or whatever. It's up to the user.

fakenickels commented 4 years ago

indeed I think this would add some confusion