[Haskell-cafe] Reformatter for Show

Erik de Castro Lopo mle+hs at mega-nerd.com
Tue May 3 00:27:13 CEST 2011


Ozgur Akgun wrote:

> Hi Alexey,
> 
> On 2 May 2011 21:01, Alexey Khudyakov <alexey.skladnoy at gmail.com> wrote:
> 
> > My question is there any tool for reformatting result of show so it could
> > be read by human beings?
> >
> 
> http://hackage.haskell.org/package/pretty-show
> 
> Just use ppShow, instead of show.

ppShow also has a command line tool called ppsh. I run ppsh in
an xterm, paste the Show output into the xterm and then hit
Control-d to see the formatted output.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Haskell-Cafe mailing list