Constraint-Free Type Error Slicing
Constraint-Free Type Error Slicing
复制标题
无约束类型错误切片
DOI:
--
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
Thomas Schilling
中科院分区:
文献类型:
--
作者:
Thomas Schilling
Type error messages for ML-based languages tend to suffer from imprecise error locations --- the type checker reports only one of many possible locations of an error. The notion of a type error slice corrects this by reporting all program locations that contribute to a given error (and no more).
Previous work on producing type error slices required the use of a constraint-based type checker implementation. For most existing systems this would require substantial changes to well-tested and subtle pieces of code. In this work we show how to produce useful type error slices with an unmodified type checker. Other tools, such as automatic correction systems, can be layered on top of our system.
We have implemented this technique on top of the Glasgow Haskell Compiler (GHC) and report our experiences.