We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[@fmt "%d"]
[@printer fun fmt -> fprintf fmt "%d"]
Add the new attribute so
would become
Well, the reason is quite obvious, just to be type more while the case is quite common, I believe.
The text was updated successfully, but these errors were encountered:
Another approach would be for you to declare a local function
let fmt format = fun ppf -> Printf.fprintf ppf format
and use [@printer fmt "%d"].
[@printer fmt "%d"]
Sorry, something went wrong.
@gasche it is what I did exactly, but it is still less concise than my suggestion.
No branches or pull requests
Add the new attribute so
would become
Well, the reason is quite obvious, just to be type more while the case is quite common, I believe.
The text was updated successfully, but these errors were encountered: