Skip to main content
Erschienen in:
Buchtitelbild

1991 | ReviewPaper | Buchkapitel

Type classes and overloading resolution via order-sorted unification

verfasst von : Tobias Nipkow, Gregor Snelting

Erschienen in: Functional Programming Languages and Computer Architecture

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

We present a type inference algorithm for a Haskell-like language based on order-sorted unification. The language features polymorphism, overloading, type classes and multiple inheritance. Class and instance declarations give rise to an order-sorted algebra of types. Type inference essentially reduces to the Hindley/Milner algorithm where unification takes place in this order-sorted algebra of types. The theory of order-sorted unification provides simple sufficient conditions which ensure the existence of principal types. The semantics of the language is given by a translation into ordinary λ-calculus. We prove the correctness of our type inference algorithm with respect to this semantics.

Metadaten
Titel
Type classes and overloading resolution via order-sorted unification
verfasst von
Tobias Nipkow
Gregor Snelting
Copyright-Jahr
1991
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/3540543961_1