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

New lines when printing systems #101

Open
guillaumebrunerie opened this issue Sep 4, 2018 · 3 comments
Open

New lines when printing systems #101

guillaumebrunerie opened this issue Sep 4, 2018 · 3 comments

Comments

@guillaumebrunerie
Copy link
Collaborator

When there is an error message showing a system (e.g. incompatible system, and maybe others), it would be nice if the system is printed with one component per line:

[ (i = 0) -> …
, (i = 1) -> …
, (j = 0) -> …
, (j = 1) -> …]

That would make it much easier to grasp what is going on.

@mortberg
Copy link
Owner

mortberg commented Sep 4, 2018

A quick and dirty way would be to add a "\n" in the string that we intercalate with in https://github.com/mortberg/cubicaltt/blob/master/Connections.hs#L384

Is this what you want? It won't be very pretty, but it might be better than what we have now...

@guillaumebrunerie
Copy link
Collaborator Author

Thanks, that’s a bit better although when one of the faces contains an hcomp (and a system), then both the inner and the outer systems appear at the same level of indentation which is a bit confusing.

@mortberg
Copy link
Owner

mortberg commented Sep 4, 2018

Yeah, I guess it would be nice to get the pretty printer to properly indent stuff... It would also be nice to post-process the output to use more readable names instead of i1423827

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants