further reduce newlines for compact output#110
further reduce newlines for compact output#110georgefst merged 4 commits intocdepillabout:masterfrom
Conversation
|
I don't generally use the compact output option, so I don't have a strong opinion on this change, but it does roughly look to me like what someone who wants more compact output would want. @georgefst How does this look to you? @juhp I'm wondering if any of these doctests will need to get fixed? pretty-simple/src/Text/Pretty/Simple.hs Line 663 in abbfd69 master, but would now pass with this PR?
|
added a doctest reflecting the more compact [(a,b)] output
|
Yea, I was a little surprised too: thanks for pointing out the doctests. I have a added a simple doctest which is affected by this change. Previously the output would have been: |
|
Nice! As I've said elsewhere, compact mode was kind of a quick hacky afterthought. This makes it a bit more useful and intuitive. I hope you don't mind that I've pushed two small refactors. |
|
RE #84 (comment): would you be interested in also helping to improve the output of records? We can tackle that separately otherwise. |
I think I would prefer it to be tackled separately - perhaps I can have a look at some point. |
Ok, no worries! |
This seems to rather make the compact output have less newline commas: addressing #84.
eg
becomes