Qualified Types
Author | : Mark P. Jones |
Publisher | : Cambridge University Press |
Total Pages | : 176 |
Release | : 2003-10-16 |
ISBN-13 | : 0521543266 |
ISBN-10 | : 9780521543262 |
Rating | : 4/5 (62 Downloads) |
Download or read book Qualified Types written by Mark P. Jones and published by Cambridge University Press. This book was released on 2003-10-16 with total page 176 pages. Available in PDF, EPUB and Kindle. Book excerpt: Qualified types can be viewed as a generalization of type classes in the functional language Haskell and the theorem prover Isabelle. These in turn are extensions of equality types in Standard ML. Other applications of qualified types include extensible records and subtyping. This book describes the use of qualified types to provide a general framework for the combination of polymorphism and overloading. Using a general formulation of qualified types, the author extends the Damas/Milner type inference algorithm to support qualified types. In addition, he describes a new technique for establishing suitable coherence conditions that guarantee the same semantics for all possible translations of a given term. Practical issues that arise in concrete implementations are also discussed, concentrating in particular on the implementation of overloading in Haskell and Gofer, a small functional programming system developed by the author. This book will be suitable for advanced graduate students and researchers in computer science.