Ad hoc polymorphism - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Pedro Minicz

Hindley-Milner type inference is described many places. However, that is just half of (vanilla, no extensions enabled) Haskell's amazing type system, the other half, I'd argue, is ad hoc polymorphism in the form of typeclasses. Where is the formalism behind this idea described?

Georgi Lyubenov // googleson78

although you would also have to trace all the other papers

Georgi Lyubenov // googleson78

I think it's honestly a pretty unique thing nowadays

Georgi Lyubenov // googleson78

not sure if it's described anywhere in its entirety

Georgi Lyubenov // googleson78

this is the base for the "current" type inference algo in haskell, afaik

Georgi Lyubenov // googleson78

so maybe some more (up to date?) info in there