Add Ltac2 Bool.to_string and Message.of_bool/of_list/of_option#22241
Open
JasonGross wants to merge 1 commit into
Open
Add Ltac2 Bool.to_string and Message.of_bool/of_list/of_option#22241JasonGross wants to merge 1 commit into
JasonGross wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw
b9ac959 to
3dd425c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Written by Claude (Fable 5) via Claude Code, on behalf of @JasonGross; extracted from a larger Ltac2 utility library. One of a series of small independent Ltac2 stdlib additions.]
Adds basic printers:
Bool.to_string, andMessage.of_bool,Message.of_list_with_sep,Message.of_list(separator"; "),Message.of_option(printingSomefollowed by the element, orNone).Design note: the isolated decision — spanning all of these, which is why they travel together — is the shape:
Message.of_*functions (chosen here, matching the existingof_int/of_string/...) vsPrintf%a-style combinators. Implemented with plain recursion soMessage.vonly gains a dependency onLtac2.Bool.🤖 Generated with Claude Code
https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw