Sciweavers

ICFP
2003
ACM

Discriminative sum types locate the source of type errors

15 years 11 days ago
Discriminative sum types locate the source of type errors
We propose a type system for locating the source of type errors in an applied lambda calculus with ML-style polymorphism. The system is based on discriminative sum types--known from work on soft typing--with annotation subtyping and recursive types. This way, type clashes can be registered in the type for later reporting. The annotations track the potential producers and consumers for each value so that clashes can be traced to their cause. Every term is typeable in our system and type inference is decidable. A type derivation in our system describes all type errors present in the program, so that a principal derivation yields a principal description of all type errors present. Error messages are derived from completed type derivations. Thus, error messages are independent of the particular algorithm used for type inference, provided it constructs such a derivation. Categories and Subject Descriptors D.3.2 [Programming Languages]: Language Classifications-Applicative (functional) lang...
Matthias Neubauer, Peter Thiemann
Added 13 Dec 2009
Updated 13 Dec 2009
Type Conference
Year 2003
Where ICFP
Authors Matthias Neubauer, Peter Thiemann
Comments (0)