[Haskell-beginners] Equivalence of Inheritance
Antoine Latter
aslatter at gmail.com
Tue Dec 14 20:58:28 CET 2010
On Tue, Dec 14, 2010 at 1:52 PM, Russ Abbott <russ.abbott at gmail.com> wrote:
> If gender is a field in a Person type, then a Person must have both an
> ovaryCondition and a prostateCondition. That seems awkward.
> Regarding
> class Person p where
> I started down that path but got completely fouled up.
How did this get fouled up? Every class declaration must take
arguments - here, 'p' is the argument for the class.
Thanks,
Antoine
More information about the Beginners
mailing list