Type classes in Haskell
Cordelia V. Hall, Kevin Hammond, Simon Jones et al. · ACM Transactions on Programming Languages and Systems · 1996
This article defines a set of type inference rules for resolving overloading introduced by type classes, as used in the functional programming language Haskell. Programs including type classes are transformed into ones which may be typed by standard Hindley-Milner inference rules. In contrast to other work on type classes, the rules presented here relate directly to Haskell programs. An innovative aspect of this work is the use of second-order lambda calculus to record type information in the transformed program.
Cited by 249 works. doi:10.1145/227699.227700 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- A theory of type polymorphism in programming
- The Definition of Standard ML
- Proceedings of the conference on Functional programming languages and computer architecture
- The principle type-scheme of an object in combinatory logic
- Towards a theory of type structure
- Report on the programming language Haskell
- The implementation of functional programming languages
- Miranda: A non-strict functional language with polymorphic types
- The Principal Type-Scheme of an Object in Combinatory Logic