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

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sun Apr 22 11:37:19 CEST 2012


On 22 April 2012 19:11, TP <paratribulations at free.fr> 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
> there some option to do that, or have I to comment all the Show instances of
> my code, and add "Show" in "deriving (...)" for each of my types? If this is
> the only possibility, is there some script around here to do that
> automatically?

Is there any particular reason you're *not* using the defaults?

>
> Thanks in advance,
>
> TP
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list