-
Notifications
You must be signed in to change notification settings - Fork 42
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
Switch from ansi-wl-pprint to the prettyprinter package. #586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In about a half-dozen places you fixed the annotation to ()
; with the parameterized ann
the rest of the time that seems like a shortest-path conversion but doesn't enhance the context for later handling like colorization. If the "shortest-path" assumption is correct, it might be nice to note that in the description of the PR for future reference (as opposed to having a reason for it explicitly being ()
).
There were lots of locations that were effectively pretty . show
, and you marked a couple but not many of those. It would be great to shorten those to pretty
where possible and mark them where not possible with some kind of consistent comment mark for future updating.
Also not a lot of consistency between leveraging IsString
and using pretty
; if this was mostly a mechanical sed
-style change, it might be worth going through and standardizing on the former where possible.
Mostly an eyeball-glazing mechanical set of changes, thanks for doing all of this! I had a few comments above and throughout but nothing significant enough to prevent merging, so feel free to ignore or change as you'd prefer but I think this is a good step forward to get merged.
About using One stumbling block was that there are a few datatypes that stored I'm not sure what we should consider the best practice for handling the |
My latest thinking is that we should try to completely avoid |
I agree that it's unwanted tech-debt, but it's going to be hard to completely eliminate these due to using external libraries (even our own) that don't have prettyprinter One suggestion is to use the prettyprinter |
28f5d0b
to
4f5df14
Compare
I just came across |
4f5df14
to
6473c24
Compare
I think we should use |
427eeba
to
72673e0
Compare
This commit includes the following submodule PRs: - GaloisInc/what4#77 - GaloisInc/crucible#586 - GaloisInc/macaw#178 WARNING: Do not merge this commit into master until all of the above PRs are merged into their respective master branches and the submodule references of this commit can be patched up.
This commit includes the following submodule PRs: - GaloisInc/what4#77 - GaloisInc/crucible#586 - GaloisInc/macaw#178 WARNING: Do not merge this commit into master until all of the above PRs are merged into their respective master branches and the submodule references of this commit can be patched up.
The following submodules have been updated to use prettyprinter: - what4 - saw-core The following packages have been converted: - crucible - crucible-jvm - crucible-llvm - crucible-saw - crucible-server - crucible-syntax - crux - crux-llvm - crux-mir
Some occurrences have been refactored to avoid `show` altogether. Using `viaShow` will make it easier to locate and remove this pattern later when more Pretty class instances are added.
416bf7f
to
70c740d
Compare
Re-reviewed with all the updated changes: this looks good to me! |
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This commit includes the following submodule PRs: - GaloisInc/what4#77 - GaloisInc/crucible#586 - GaloisInc/macaw#178 WARNING: Do not merge this commit into master until all of the above PRs are merged into their respective master branches and the submodule references of this commit can be patched up.
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This commit includes the following submodule PRs: - GaloisInc/what4#77 - GaloisInc/crucible#586 - GaloisInc/macaw#178 WARNING: Do not merge this commit into master until all of the above PRs are merged into their respective master branches and the submodule references of this commit can be patched up.
This commit includes the following submodule PRs: - GaloisInc/what4#77 - GaloisInc/crucible#586 - GaloisInc/macaw#178 - GaloisInc/elf-edit#20 WARNING: Do not merge this commit into master until all of the above PRs are merged into their respective master branches and the submodule references of this commit can be patched up.
This patch includes and adapts to the following submodule PRs: - GaloisInc/what4#77 "prettyprinter" - GaloisInc/crucible#586 "prettyprinter"
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 - GaloisInc/asl-translator#28 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 - GaloisInc/asl-translator#28 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 - GaloisInc/asl-translator#28 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 - GaloisInc/asl-translator#28 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This patch relies on the following submodule updates: - GaloisInc/what4#77 - GaloisInc/elf-edit#20 - GaloisInc/crucible#586 - GaloisInc/asl-translator#28 This patch updates the following packages: - macaw-base - macaw-symbolic - macaw-x86 - macaw-x86-symbolic - macaw-aarch32 - macaw-ppc - macaw-semmc - macaw-refinement
This commit includes the following submodule PRs: - GaloisInc/what4#77 - GaloisInc/crucible#586 - GaloisInc/macaw#178 - GaloisInc/elf-edit#20
Note: This PR builds on GaloisInc/what4#77, GaloisInc/saw-core#106, #584, and #585; it will stay in draft status until those PRs are accepted and merged.
EDIT: GaloisInc/saw-core#106, #584, and #585 have all been merged, so we're just waiting on GaloisInc/what4#77.