-
Notifications
You must be signed in to change notification settings - Fork 13
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.
#77
Conversation
The CI says I introduced an ambiguous type in a call to |
This patch converts packages `what4`, `what4-abc`, and `what4-blt`.
ccb0c64
to
0a1ec94
Compare
We prefer the `viaShow` function from `Prettyprinter`, so that it is easier to find and replace such usages when types gain proper `Pretty` class instances in the future.
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.
Left a couple of comments on various areas to check on before merging this.
@@ -951,7 +951,7 @@ findExprToRemove exprs0 = go [] exprs0 Nothing | |||
go (AppPPExpr a:prev) exprs (Just (reverse prev, a, exprs)) | |||
|
|||
|
|||
ppExpr' :: forall t tp s . Expr t tp -> PPExprOpts -> ST s ([Doc], PPExpr) | |||
ppExpr' :: forall t tp s ann. Expr t tp -> PPExprOpts -> ST s ([Doc ann], PPExpr ann) |
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.
Along with the previous comment, an explicit annotation type will make it useable at rendering time.
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.
Same reasoning as before; this is code that generates Doc
s containing no annotations, so we might as well keep them polymorphic for maximum flexibility.
`Doc Void` more accurately reflects the intention of a `Doc` containing no annotations.
3192985
to
add42ee
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.
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
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.
Looks good!
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
This patch converts packages
what4
,what4-abc
, andwhat4-blt
.(Note: I wasn't able to compile
what4-blt
locally, so I will need to rely on CI to see that I modified it correctly.)