packages feed

pretty-simple 1.1.0.1 → 1.1.0.2

raw patch · 2 files changed

+19/−2 lines, 2 files

Files

README.md view
@@ -102,6 +102,23 @@  ## Other Uses +### Pretty-print all GHCi output++The `pPrint` function can be used as the default output function in GHCi.++All you need to do is run GHCi like this:++```sh+$ stack ghci --ghci-options "-interactive-print=Text.Pretty.Simple.pPrint" --package pretty-simple+```++Now, whenever you make GHCi evaluate an expression, GHCi will pretty-print the+result using `pPrint`!  See+[here](https://downloads.haskell.org/%7Eghc/latest/docs/html/users_guide/ghci.html#using-a-custom-interactive-printing-function)+for more info on this neat feature in GHCi.++### Pretty-printing JSON+ `pretty-simple` can be used to pretty-print any `String` that is similar to Haskell data types.  The only requirement is that the `String` must correctly use brackets, parenthese, and braces to indicate nesting.
pretty-simple.cabal view
@@ -1,7 +1,7 @@ name:                pretty-simple-version:             1.1.0.1+version:             1.1.0.2 synopsis:            pretty printer for data types with a 'Show' instance.-description:         Please see README.md+description:         Please see <https://github.com/cdepillabout/pretty-simple#readme README.md>. homepage:            https://github.com/cdepillabout/pretty-simple license:             BSD3 license-file:        LICENSE