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 --compact switch to the pretty-simple executable #111

Closed juhp closed 2 years ago

juhp commented 2 years ago

This is towards #34 adding a --compact cli option.

cdepillabout commented 2 years ago

This looks good to me!

$ pretty-simple --compact
{ "hello" = [ "now", "bad" ], tomorrow = Just (3, 4) }^D
{ "hello" = [ "now", "bad"  ], tomorrow = Just ( 3, 4 )  }
$ pretty-simple
{ "hello" = [ "now", "bad" ], tomorrow = Just (3, 4) }^D
{ "hello" =
    [ "now"
    , "bad"
    ]
, tomorrow = Just
    ( 3
    , 4
    )
}
cdepillabout commented 2 years ago

@georgefst @juhp Want me to do a release?

georgefst commented 2 years ago

@georgefst @juhp Want me to do a release?

Go for it, thanks!

I've just merged #104, which gives us one more reason to release.