Parametric type classes
Kung Chen, Paul Hudak, Martin Odersky · 1992
We propose a generalization to Haskell's type classes where a class can have type parameters besides the placeholder variable. We show that this generalization is essential to represent container classes with overloaded data constructor and selector operations. We also show that the resulting type system has principal types and present unification and type reconstruction algorithms.
Cited by 56 works. doi:10.1145/141471.141536
Authors
References
- A Machine-Oriented Logic Based on the Resolution Principle
- Principal type-schemes for functional programs
- Report on the programming language Haskell
- How to make ad-hoc polymorphism less ad hoc
- Comprehending monads
- F-bounded polymorphism for object-oriented programming
- Interactive type analysis and extended message splitting; optimizing dynamically-typed object-oriented programs
- A language for computational algebra
- A theory of qualified types
- Parametric overloading in polymorphic programming languages