On 23 Apr 2012, at 17:49, Evan Laforge wrote:
> I use a custom Pretty class along with HughesPJ, ala ghc's Outputable.
> It means I can omit data or print it out in a more readable form
> (even just rounding floats to %.03f can help a lot), and also get nice
> layout and wrapping.
I think I do so
I use a custom Pretty class along with HughesPJ, ala ghc's Outputable.
It means I can omit data or print it out in a more readable form
(even just rounding floats to %.03f can help a lot), and also get nice
layout and wrapping. The downside is a certain amount of boilerplate
to write output routi
On 22 April 2012 19:55, TP wrote:
> On Sunday 22 April 2012 19:37:19 Ivan Lazar Miljenovic wrote:
>
>> Is there any particular reason you're *not* using the defaults?
>
> This is a good question which I have asked myself. I have searched about the
> topic, and found that:
>
> http://blog.romanandr
On Sunday 22 April 2012 19:37:19 Ivan Lazar Miljenovic wrote:
> Is there any particular reason you're *not* using the defaults?
This is a good question which I have asked myself. I have searched about the
topic, and found that:
http://blog.romanandreg.com/post/13545420287/haskells-show-and-pret
On 22 April 2012 19:11, TP wrote:
> Hello,
>
> I have a module where I have made several types as instances of the Show
> typeclass.
>
> For debugging purpose, I would like to use the default implementation for Show
> (the one obtained when using "deriving", which shows all the constructors). Is
>
On Sun, Apr 22, 2012 at 11:11:51AM +0200, TP wrote:
> Hello,
>
> I have a module where I have made several types as instances of the Show
> typeclass.
>
> For debugging purpose, I would like to use the default implementation for
> Show
> (the one obtained when using "deriving", which shows all
Hello,
I have a module where I have made several types as instances of the Show
typeclass.
For debugging purpose, I would like to use the default implementation for Show
(the one obtained when using "deriving", which shows all the constructors). Is
there some option to do that, or have I to co