cdepillabout / pretty-simple

pretty-printer for Haskell data types that have a Show instance
https://hackage.haskell.org/package/pretty-simple
BSD 3-Clause "New" or "Revised" License
243 stars 29 forks source link

Add compactness options #72

Closed georgefst closed 4 years ago

georgefst commented 4 years ago

Closes #43.

georgefst commented 4 years ago

I ended up going with trailing parentheses at the end of the line (with one space between each), rather than on a new line with matching columns. Since it was trivial to implement, and more compact anyway.

cdepillabout commented 4 years ago

I skimmed through the code, but could you add a few simple tests somewhere (maybe at the bottom of Text.Pretty.Simple in the big doctest comment)?