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

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


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`

I hope you find this useful,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pretty-show.png
Type: image/png
Size: 55105 bytes
Desc: not available
URL: <>

More information about the Libraries mailing list