Hello,
I'm not 100% sure this isn't already implemented but, at the moment, I believe that the only option for obtaining a printer is to use [@@deriving show]. This also generates a show function, which I often do not want, it clutters my APIs and whenever I want to write the printer by hand it forces me to also add the show function everywhere even though I never use it.
Would you be interested in having [@@deriving pp] in addition to [@@deriving show] which would do the same thing but only derive the pp function and note the show function?
Happy to implement this myself if there is agreement :)
Hello,
I'm not 100% sure this isn't already implemented but, at the moment, I believe that the only option for obtaining a printer is to use
[@@deriving show]. This also generates ashowfunction, which I often do not want, it clutters my APIs and whenever I want to write the printer by hand it forces me to also add the show function everywhere even though I never use it.Would you be interested in having
[@@deriving pp]in addition to[@@deriving show]which would do the same thing but only derive theppfunction and note theshowfunction?Happy to implement this myself if there is agreement :)