Implementing type classes
John R. Peterson, Mark P. Jones · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1993
We describe the implementation of a type checker for the functional programming language Haskell that supports the use of type classes. This extends the type system of ML to support overloading (ad-hoc polymorphism) and can be used to implement features such as equality types and numeric overloading in a simple and general way.
Cited by 61 works. doi:10.1145/155090.155112 Open-access PDF
Authors
References
- Principal type-schemes for functional programs
- Report on the programming language Haskell
- Compiling with Continuations
- How to make ad-hoc polymorphism less ad hoc
- Qualified Types : Theory and Practice
- Implementing Haskell overloading
- A modular fully‐lazy lambda lifter in Haskell
- Qualified types: theory and practice (ordering relation)
- A critique of Standard ML
- Computing with lattices: An application of type classes