[Haskell-beginners] Using derived Show most of the time
Russ Abbott
russ.abbott at gmail.com
Sat Dec 11 17:45:22 CET 2010
I have a data type for which I want to generate my own show string in a few
cases, e.g.,
*data *T = T1 ...
| T2 ...
| T3 ...
...
I'd like to do something like this,
*instance *Show T *where*
show T5 ... = <something special>
show t = showTheDerived t
Is there a way to do something like that simply?
*
-- Russ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20101211/a91ace6e/attachment.htm>
More information about the Beginners
mailing list