"Subclassing" show in Haskell?

Posted by me2 on Stack Overflow See other posts from Stack Overflow or by me2
Published on 2010-03-27T14:44:42Z Indexed on 2010/03/27 15:03 UTC
Read the original article Hit count: 352

Filed under:
|

Lets say I have the following:

data Greek = Alpha | Beta | Gamma | Phi deriving Show

I want to use the default showing of all items except Beta, which I want to say "two".

Can I do this?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about subclass