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 --version flag to pretty-simple CLI #83

Closed cdepillabout closed 4 years ago

cdepillabout commented 4 years ago

This flag prints out the version of pretty-simple:

$ pretty-simple --version
4.0.0.0

I've wanted this for a while, and it would have helped me avoid posting https://github.com/cdepillabout/pretty-simple/issues/79.

georgefst commented 4 years ago

Could we add a -V alias? This would be consistent with ghc, cabal and a lot of other tools.

Otherwise LGTM.

cdepillabout commented 4 years ago

@georgefst Yup, sounds good. Added in 5cfc66b.