-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have you thought about adding [%derive.pp: <some-type>]
?
#293
Comments
Useful indeed, and a pp-function thing would also be. It may even fix bugs: type i = {
j: int;
}
let f = [%show: i]
A |
Um, I don't follow you. The type
makes it work fine. Was there something else you were pointing-out? |
I'm looking for a means to derive over types defined in dependencies that I don't want to change or duplicate. Does this make sense? |
Right, for that you can use |
It does the job. Thanks. I hadn't spotted that pattern yet. I'd also use what you're proposing. |
there's
[%show: int]
etc, and that's useful. But I thought it mgiht be useful to have the same for Format-based pp-functions. I'm contemplating adding it topa_ppx.deriving_plugins.show
, and figured I'd see if you guys wanted to add the same here.The text was updated successfully, but these errors were encountered: