Changelog of @hackage/pretty-simple 3.2.3.0

3.2.3.0

  • Fix a bug that messes up printing identifiers with ' in the name. Now identifiers like data Don't = Don't show up properly. #65 Thanks George Thomas (@georgefst)!

3.2.2.0

  • Remove whitespace from the ends of lines. #62 Thanks Gaith Hallak (@ghallak)!

3.2.1.0

  • Added pTraceOpt functions to Debug.Pretty.Simple. #58 Thanks again sureyeaah!

3.2.0.0

  • Add support for pretty-printing Haskell character literals. #57 Thanks again sjakobi!

3.1.1.0

  • Added a pPrintString function for pretty-printing a String that is the output of show. 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 outputOptionsEscapeNonPrintable has been added to OutputOptions to control this behavior. Implemented in #44. Thanks dminuoso!
  • pretty-simple now checks the output Handle to determine whether to print in color when using functions like pPrint. This makes it so that you can redirect output to a file on disk and still be able to read the output from pPrint! Implemented in #47. Thanks metiulekm!
  • Add functions like pHPrint for specifying the Handle to 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 --color to 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

  • Fix a bug where printing deeply nested data structures would take exponential time. Thanks Andrew!

2.1.0.0

  • Make strings have indentation by default when pretty-printed. See #26. Thanks Milan!

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/bin if you enable the flag buildexe like so:

    $ stack install pretty-simple-2.0.2.1 --flag pretty-simple:buildexe
    

    When 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.Simple that exports functions that work like Debug.Trace.