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

advertise that this can be integrated with ghci #8

Closed jwaldmann closed 7 years ago

jwaldmann commented 7 years ago

you can do this:

ghci -interactive-print=Text.Pretty.Simple.pPrint

then every output in a ghci session will be pretty-printed, see https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#using-a-custom-interactive-printing-function

(when I read the original accouncement, I thought this was the main purpose, but I do not find this mentioned in the docs)

cdepillabout commented 7 years ago

Thanks for letting me know about this feature! This is pretty handy. I added a note to the README:

https://github.com/cdepillabout/pretty-simple#pretty-print-all-ghci-output