-
Notifications
You must be signed in to change notification settings - Fork 47
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
Simplify Show #75
Comments
Another option is to deprecate and remove I recently created coq-ceres as an alternative, using S-expressions instead of strings as a common format that can easily be pretty-printed and parsed. A proper pretty-printing library also seems like a good idea. |
I am generally in favor of small libraries, so I would be in favor of moving I don't think that S-expressions solve everything, so I think there is some benefit to more customizable pretty printing library. Perhaps there is some good way to share some of the formatting logic within ceres? I'm thinking of "boxes" and the like. |
@Lysxia Do you think there is some pieces of ceres that could be reused for this? |
Ceres doesn't currently do any kind of pretty printing, it only writes
S-expressions on one line. But the idea is that S-expressions can be
formatted independently.
So there's going to be a pretty-printing library written from scratch
and ceres will depend on it to provide a decent pretty-printer for
simple debugging needs.
|
Does ceres not generate a string? |
I'm not sure what you're thinking of. There is a function that converts S-expressions (trees) to strings, but there's not much to be reused from it. |
I see. |
Show got complicated because it tried to do too much. It can generate
string
,list ascii
, etc, any monoid with an injection from ASCII. This means that debugging instances is hard.The text was updated successfully, but these errors were encountered: