[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-cafe
Subject: Re: [Haskell-cafe] Reformatter for Show
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2011-05-02 22:05:37
Message-ID: 4DBF2AB1.2080809 () gmail ! com
[Download RAW message or body]
On 03.05.2011 00:43, Antoine Latter wrote:
> On Mon, May 2, 2011 at 3:01 PM, Alexey Khudyakov
> <alexey.skladnoy@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).
>>
>> My question is there any tool for reformatting result of show so it could be
>> read by human beings?
>>
>>
>
> You could use the 'groom' package on Hackage:
>
> http://hackage.haskell.org/package/groom
>
> It works best for the derived show instances.
>
> Antoine
>
> http://hackage.haskell.org/package/pretty-show
>
> Just use ppShow, instead of show.
>
> Hope this helps,
> Ozgur
Thanks a lot. It's exactly what I looked for. Both packages do they jobs
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic