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 pTraceOpt function in Debug.Pretty.Simple #21

Closed cdepillabout closed 4 years ago

cdepillabout commented 6 years ago

It would be nice to have pTrace*Opt functions defined in Debug.Pretty.Simple.

Then the pTrace* and pTrace*NoColor functions could be written in terms of the pTraceOpt functions, similar to how it is being done in Text.Pretty.Simple.

This should be pretty simple to do, so I'll mark it as "beginner-friendly".

cdepillabout commented 4 years ago

Fixed in https://github.com/cdepillabout/pretty-simple/pull/58