[Haskell-cafe] Existentially-quantified constructors, Eq and Show

Bulat Ziganshin bulatz at HotPOP.com
Wed Dec 7 18:14:30 EST 2005

Hello Joel,

Thursday, December 08, 2005, 1:12:07 AM, you wrote:

JR> Is there a less verbose way of doing this:

data (Show a, Eq a) => State a
     = Start
     | Stop
     | State a
   deriving (Show, Eq)

Best regards,
 Bulat                            mailto:bulatz at HotPOP.com

More information about the Haskell-Cafe mailing list