Skip to content
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

Remove duplicated code for value pretty-printers #343

Open
shym opened this issue May 12, 2023 · 0 comments
Open

Remove duplicated code for value pretty-printers #343

shym opened this issue May 12, 2023 · 0 comments

Comments

@shym
Copy link
Collaborator

shym commented May 12, 2023

Lin and STM both use 'a -> string functions in their main type to display values but they each redefine their set of functions for common types. All this machinery should be shared and so moved to Util.
Util.Pp introduced in #342 would be a good candidate for that.
Beside sharing the code, the 'a -> string type could be replaced with 'a Util.Pp.t to get prettier outputs (ie with parentheses when needed) if we deem it not to break too much user code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant