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 TTY detection #47

Closed metiulekm closed 5 years ago

metiulekm commented 5 years ago

Closes #46.

Seems to work but please recheck.

cdepillabout commented 5 years ago

@metiulekm Thanks for this PR!

I cleaned this up a little bit in the last couple of commits. Could you do one final review of this? If you sign off on it, I'll merge it in and make a new release.

metiulekm commented 5 years ago

I've removed the hCheckTTY export, and it LGTM :)

cdepillabout commented 5 years ago

Thanks!

Released on Hackage as pretty-simple-3.0.0.0:

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