[Haskell-beginners] Need help understanding (1) typeclass instances that have multiple parameter types, and (2) overlapping instances
David Place
d at vidplace.com
Sun Jun 26 16:12:45 CEST 2011
On Jun 26, 2011, at 9:33 AM, Costello, Roger L. wrote:
> instance MyShow (Int, Int) where
> toString (a, b) = toString a ++ ", " ++ toString b
>
> The first instance has one parameter type (Int) and the second instance has two parameter types (Int, Int).
I'm not sure what you mean by "two parameter types" here. The instance has one parameter type: a pair of ints.
____________________
David Place
Owner, Panpipes Ho! LLC
http://panpipesho.com
d at vidplace.com
More information about the Beginners
mailing list