Re: [Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-25 Thread Eric Kow
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

Re: [Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-23 Thread Evan Laforge
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

Re: [Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-22 Thread Ivan Lazar Miljenovic
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

Re: [Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-22 Thread TP
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

Re: [Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-22 Thread Ivan Lazar Miljenovic
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 >

Re: [Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-22 Thread Lorenzo Bolla
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

[Haskell-cafe] "desactivate" my Show instance implementations temporarily

2012-04-22 Thread TP
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