Changelog for pretty-simple-4.1.4.0
4.1.4.0
4.1.3.0
- Remove custom setup. This makes cross-compiling
pretty-simplea lot more straightforward. No functionality has been lost from the library, since the custom setup was only used for generating tests. #107
4.1.2.0
- Fix a problem with the
pHPrintfunction incorrectly outputting a trailing newline to stdout, instead of the handle you pass it. #118 - Add a web app where you
can play around with
pretty-simplein your browser. #116. This took a lot of hard work by @georgefst!
4.1.1.0
- Make the pretty-printed output with
outputOptionsCompactenabled a little more compact. #110. Thanks @juhp! - Add a
--compact/-Cflag to thepretty-simpleexecutable that enablesoutputOptionsCompact. #111. Thanks again @juhp! - Add
pTraceWithandpTraceShowWithtoDebug.Pretty.Simple. #104. Thanks @LeviButcher!
4.1.0.0
- Fix a regression which arose in 4.0, whereby excess spaces would be inserted for unusual strings like dates and IP addresses. #105
- Attach warnings to debugging functions, so that they're easy to find and remove. #103
- Some minor improvements to the CLI tool:
4.0.0.0
- Expand
OutputOptions: - Significant internal rewrite of printing code, to make use of the prettyprinter
library. The internal function
layoutStringcan be used to integrate with otherprettyprinterbackends, such as prettyprinter-lucid for HTML output. #67
3.3.0.0
- Add an output option to print escaped and non-printable characters literally when outputting strings. #68 and #69 Thanks Joe Hermaszewski (@expipiplus1)!
3.2.3.0
- Fix a bug that messes up printing identifiers with
'in the name. Now identifiers likedata Don't = Don'tshow up properly. #65 Thanks George Thomas (@georgefst)!
3.2.2.0
3.2.1.0
3.2.0.0
3.1.1.0
- Added a
pPrintStringfunction for pretty-printing aStringthat is the output ofshow. Implemented in #54. Thanks sureyeaah! - Fix build on GHC-7.10.3. #55. Thanks sjakobi.
3.1.0.0
- Numbers are now highlighted in green by default. Implemented in #51. Thanks lawrencebell!
3.0.0.0
- pretty-simple now escapes non-printable characters by default. A field
called
outputOptionsEscapeNonPrintablehas been added toOutputOptionsto control this behavior. Implemented in #44. Thanks dminuoso! - pretty-simple now checks the output
Handleto determine whether to print in color when using functions likepPrint. This makes it so that you can redirect output to a file on disk and still be able to read the output frompPrint! Implemented in #47. Thanks metiulekm! - Add functions like
pHPrintfor specifying theHandleto output to. Added in #47.
2.2.0.1
- Fixed a bug where the parser failed to parse escaped quotation marks in string literals. Thanks Andreas!
2.2.0.0
- Fixed a bug with a missing space after strings. Thanks again Andrew!
- Add a command line flag
--colorto be able to set whether to use colors for a dark background (--color dark-bg), a light background (--color light-bg), or no color (--color no-color). This is from great work by Andrew! - Made parsing/printing lazy - pretty-printing will now output strings continuously as they're read, handling potentially infinite input.
2.1.0.1
2.1.0.0
2.0.2.1
-
Add a small command-line program that will pretty print anything from stdin called
pretty-print. It can be installed to~/.local/binif you enable the flagbuildexelike so:$ stack install pretty-simple-2.0.2.1 --flag pretty-simple:buildexeWhen you run it, you can paste something you want formatted on stdin, then press Ctrl-D. It will print the formatted version on stdout:
$ pretty-simple [(Just 3, Just 4)] ^D [ ( Just 3 , Just 4 ) ]
2.0.2.0
- Fix a problem with the pTraceShow functions not working correctly.
2.0.1.0
- Added the
Debug.Pretty.Simplethat exports functions that work likeDebug.Trace.