[Haskell-cafe] class-instance
Patrick Browne
patrick.browne at dit.ie
Mon Jan 17 15:07:12 CET 2011
On 17/01/2011 13:04, Ketil Malde wrote:
>> So other PERSONs would have different types, say:
I think the problem is there is just one constant p1 in the class and
there needs to be multiple constants in the implementation (one for each
person). It seems difficult to specify this using type classes So, some
data declaration as you suggest will probably be needed.
Thanks,
Pat
This message has been scanned for content and viruses by the DIT Information Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie
More information about the Haskell-Cafe
mailing list