[Haskell-cafe] Alternate instance Show (Maybe a)?

Sergey Zaharchenko doublef-ctm at yandex.ru
Sun Feb 4 02:49:07 EST 2007


Hello Yitzchak!

Sat, Feb 03, 2007 at 07:54:17PM +0200 you wrote:

> Show instances are supposed to follow the convention that
> "show x" is a Haskell expression that recreates x. In other words,
> Show is mainly used for debugging, for simple serialization, and
> for interactive use in a Haskell shell like ghci or hugs.
> 
> If you need to create strings from a datatype for some other
> reason, use a different function name. If you need to do it
> for several datatypes, create your own class.

Yes, I think another Show-like class will probably be a better
solution...

Thanks Yitzchak and Bjorn,

-- 
DoubleF
No virus detected in this message. Ehrm, wait a minute...
/kernel: pid 56921 (antivirus), uid 32000: exited on signal 9
Oh yes, no virus:)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070204/e6c3bcac/attachment.bin


More information about the Haskell-Cafe mailing list