[Haskell-cafe] confusion about 'instance'....
Nicholls.Mark at mtvne.com
Thu Jan 10 09:33:52 EST 2008
Someone said something about having 2 instances of the type in the
typeclass.....maybe I misinterpreted it.
> -----Original Message-----
> From: Luke Palmer [mailto:lrpalmer at gmail.com]
> Sent: 10 January 2008 14:12
> To: Nicholls, Mark
> Cc: Bulat Ziganshin; haskell-cafe at haskell.org
> Subject: Re: Re: [Haskell-cafe] confusion about 'instance'....
> On Jan 10, 2008 2:04 PM, Nicholls, Mark <Nicholls.Mark at mtvne.com>
> > I can translate OO into mathematical logic pretty easily, I was
> > to do the same thing (informally of course) with Haskell....but
> > are not quite what they appear....not because of some OO hang up
> > I probably have many)...but because of what "type class" actually
> But you can think of a type class as a set of types! The problem is
> if we allow certain kinds of instances (such as the Foo instance I
> earlier) then the set is allowed to be non-recursive (only recursively
> enumerable), so determining whether a particular type is a member of
> would be undecidable.
More information about the Haskell-Cafe