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

irmin-type: allow pp and of_string to be overridden separately #1103

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

craigfe
Copy link
Member

@craigfe craigfe commented Oct 9, 2020

This splits the existing ~cli argument to the Type.{v,like,map} constructors into two separate arguments ~pp and ~of_string. The original naming seems to be legacy from the original use of these operations for the irmin-unix CLI.

When using typereps for pretty-printing only (e.g. for debugging / testing), it's helpful to be able to quickly override ~pp (even if this means that pp and of_string are no longer inverses).

@craigfe craigfe merged commit 21cbfd9 into mirage:master Oct 12, 2020
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

Successfully merging this pull request may close these issues.

2 participants