[Haskell-cafe] a bunch of newbie questions
Martin Percossi
haskell-cafe at martinpercossi.com
Fri Aug 4 11:21:24 EDT 2006
Bulat Ziganshin wrote:
> this is called ad-hoc polymorphism which is not supported by Haskell.
> instead Haskell supports parametric polymorphism via type classes.
I think you are wrong here Bulat. In fact, I think
a) Haskell supports parametric polymorphism, e.g.
id :: t -> t
id x = x
b) Haskell supports ad-hoc polymorphism via type classes
Martin
More information about the Haskell-Cafe
mailing list