[Haskell-cafe] Reformatter for Show

2011-05-02 Thread Alexey Khudyakov
Hello everyone! Haskell have nice automatically derivable Show type class. It's quite useful for debugging with one exception. String representation of even moderately large value is completely unreadable (example below). My question is there any tool for reformatting result of show so it

Re: [Haskell-cafe] Reformatter for Show

2011-05-02 Thread Ozgur Akgun
Hi Alexey, On 2 May 2011 21:01, Alexey Khudyakov alexey.sklad...@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. Hope this helps, Ozgur

Re: [Haskell-cafe] Reformatter for Show

2011-05-02 Thread Christopher Done
On 2 May 2011 22:01, Alexey Khudyakov alexey.sklad...@gmail.com wrote: Hello everyone! Haskell have nice automatically derivable Show type class. It's quite useful for debugging with one exception. String representation of even moderately large value is completely unreadable (example below).

Re: [Haskell-cafe] Reformatter for Show

2011-05-02 Thread Antoine Latter
On Mon, May 2, 2011 at 3:01 PM, Alexey Khudyakov alexey.sklad...@gmail.com wrote: Hello everyone! Haskell have nice automatically derivable Show type class. It's quite useful for debugging with one exception. String representation of even moderately large value is completely unreadable

Re: [Haskell-cafe] Reformatter for Show

2011-05-02 Thread Erik de Castro Lopo
Ozgur Akgun wrote: Hi Alexey, On 2 May 2011 21:01, Alexey Khudyakov alexey.sklad...@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

Re: [Haskell-cafe] Reformatter for Show

2011-05-02 Thread Alexey Khudyakov
On 03.05.2011 00:43, Antoine Latter wrote: On Mon, May 2, 2011 at 3:01 PM, Alexey Khudyakov alexey.sklad...@gmail.com wrote: Hello everyone! Haskell have nice automatically derivable Show type class. It's quite useful for debugging with one exception. String representation of even moderately