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 pPrintString function #54

Closed sureyeaah closed 4 years ago

sureyeaah commented 4 years ago

This patch implements pPrintString, pPrintStringOpt and pHPrintStringOpt functions that are similar to their pPrint counterparts except they take the 'show'ed string of the data type. Fixes #53

cdepillabout commented 4 years ago

@sureyeaah Thanks for sending this PR.

I took a quick look at it and I think it looks pretty good. It may take me a few days to do a good review and merge it in. Sorry for making you wait.

sureyeaah commented 4 years ago

Okay thanks :)

sureyeaah commented 4 years ago

Do we need the lightBg and noColor versions too?

cdepillabout commented 4 years ago

@sureyeaah I had a couple minutes today so I added the extra functions in commit f0a4bcb.

Could you review this commit?

Once you sign off on it, I will merge it in and release a new version to Hackage.

cdepillabout commented 4 years ago

@sureyeaah Thanks! Released to Hackage:

http://hackage.haskell.org/package/pretty-simple-3.1.1.0