Repository navigation
Fix pretty printing problems - #28
Conversation
|
@patritzenfeld, can you take a look and estimate whether this may have detrimental effects somewhere? |
|
Using this example:
would previously result in
which already looks weird. Now it parses to
with another comma. Also, this term seems to be interpreted incorrectly:
the conditions are correctly separated
but with
you get
That's problematic as this output is used for This seems to be somewhat unrelated to the changes here, except for that extra comma, so maybe we should handle this in another pull request? I couldn't find any other problematic effects for now. |
|
But we would normally use the pretty printed output for a |
|
Still, maybe this mixture is bad. One might ask: Why do we ever use the The point being that then |
|
(Radically, we could drop the |
|
Yeah, I also really don't like that the pretty printer is incorporated into the |
|
I let an agent update the implementation such the outputs are simplified now. I also added some test cases to see if things break. It looks good for now, but you might want to expand the test suite with some more cases I didn't cover yet. Concerning the "remove the Show instance and see where it breaks" approach: removing the Show instances makes the |
|
I haven't checked the pretty-printing logic in detail, but the unit tests look fine, so let's hope for the best, 😄 |
Closes #26
Closes #27