Interactive type debugging in Haskell
Abstract
In this paper we illustrate the facilities for type debugging of Haskell programs in the Chameleon programming environment. Chameleon provides an extension to Haskell supporting advanced and programmable type extensions. Chameleon maps the typing problem for a program to a system of constraints each attached to program code that generates the constraints. We use reasoning about constraint satisfiability and implication to find minimal justifications of type errors, and to explain unexpected types that arise. Through an interactive process akin to declarative debugging, a user can track down exactly where a type error occurs. The approach handles Hindley/Milner types with Haskell-style overloading. The Chameleon system provides a full implementation of our flexible type debugging scheme which can be used as a front-end to any existing Haskell system.
BibTeX
@inproceedings{stuckey2003interactive,
author = {Peter J. Stuckey and Martin Sulzmann and Jeremy Wazny},
title = {{Interactive type debugging in Haskell}},
booktitle = {Haskell},
year = {2003},
doi = {10.1145/871895.871903},
}Ask Althea to put this paper to the test.
Loading related content...