Typeview: A Tool for Understanding Type Errors
Axel Simon, Olaf Chitil, Frank Huch · Kent Academic Repository (University of Kent) · 2000
In modern statically typed functional languages, type inference is used to determine the type of each function automatically. Whenever this fails, the compiler emits an error message that is often very complex. Sometimes the expression mentioned in the type error message is not the one that is wrong. We therefore implement an interactive tool that allows programmers to browse through the source code of their program and query the types of each expression. If a variable cannot be typed, we would like to present a set of possible types from which the user can decide which is wrong. This should help finding the origin of type errors without detailed knowledge of type inference on the user side.
Cited by 15 works. Open-access PDF
Authors
References
- A theory of type polymorphism in programming
- The Definition of Standard ML (Revised)
- Haskell 98 — A Non−strict‚ Purely Functional Language
- The Glasgow Haskell Compiler: a technical overview
- Finding the source of type errors
- Explaining type inference
- Proofs about a folklore let-polymorphic type inference algorithm
- A maximum-flow approach to anomaly isolation in unification-based incremental type inference
- Explaining type errors in polymorphic languages
- On the Unification of Substitutions in Type Inference