Re: Constr and Eq

2005-12-29 Thread Frederik Eaton
ase check only > compares an Integer value for the constructors. > Ralf > > > > -Original Message- > > From: [EMAIL PROTECTED] > [mailto:glasgow-haskell- > > [EMAIL PROTECTED] On Behalf Of Frederik Eaton > > Sent: Thursday, December 29, 2005 10:57 AM

RE: Constr and Eq

2005-12-29 Thread Ralf Lammel
TECTED] > [mailto:glasgow-haskell- [EMAIL PROTECTED] On Behalf Of > Frederik Eaton > Sent: Thursday, December 29, 2005 10:57 AM > To: glasgow-haskell-bugs@haskell.org > Subject: Constr and Eq > > > toConstr True > True > > toConstr [()] > (:) > > toConstr

Constr and Eq

2005-12-29 Thread Frederik Eaton
> toConstr True True > toConstr [()] (:) > toConstr True == toConstr [()] True > show (toConstr True) == show (toConstr [()]) False I don't understand the utility of Constr's Eq definition. It isn't really documented though. Why return True when the constructors being compared are different? Am I