ANN: New version of pretty-show, now with Html support

Iavor Diatchki iavor.diatchki at gmail.com
Sun Jan 6 22:24:59 CET 2013


Hello,

I've uploaded a new version of the pretty-show package (1.5) to Hackage,
which provides some useful tools for inspecting Haskell data-structures.  I
find it quite useful while debugging.

The package provides a binary and a library:  the binary, named `ppsh` can
take as an input a Haskell value in standard `Show` notation, and can:
  * Either render it to a more human readable version by adding extra
white-space and newlines, thus ensuring that the result is still a valid
Haskell value, or
  * It can render the value as an interactive Html page, which is new in
this version.

The library provides similar functionality but in a programatically.  Also,
it has some support for working with non-Showable values, by using the
`PrettyVal` class, which may be derived generically.

As an example, I am attaching a picture of a part of a data-structure
generated with the `language-c-quote` library, by using the standard `Show`
instance.

I hope you find this useful,
-Iavor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130106/98192e46/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pretty-show.png
Type: image/png
Size: 55105 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130106/98192e46/attachment-0001.png>


More information about the Libraries mailing list