2015
DOI: 10.4204/eptcs.198.4
|View full text |Cite
|
Sign up to set email alerts
|

Improving Type Error Messages in OCaml

Abstract: Cryptic type error messages are a major obstacle to learning OCaml or other ML-based languages. In many cases, error messages cannot be interpreted without a sufficiently-precise model of the type inference algorithm. The problem of improving type error messages in ML has received quite a bit of attention over the past two decades, and many different strategies have been considered. The challenge is not only to produce error messages that are both sufficiently concise and systematically useful to the programme… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

2018
2018
2019
2019

Publication Types

Select...
2

Relationship

0
2

Authors

Journals

citations
Cited by 2 publications
(2 citation statements)
references
References 15 publications
0
2
0
Order By: Relevance
“…The crucial problem with such DSLs is that possible type errors usually leak details of the DSL implementation and are less informative for the user [30]. For this reason, several mechanisms have been proposed for functional languages to customize the type errors generated by the compiler [31][32][33][34][35][36][37], in order to make such errors expressed in terms of the domain.…”
Section: Type Errorsmentioning
confidence: 99%
“…The crucial problem with such DSLs is that possible type errors usually leak details of the DSL implementation and are less informative for the user [30]. For this reason, several mechanisms have been proposed for functional languages to customize the type errors generated by the compiler [31][32][33][34][35][36][37], in order to make such errors expressed in terms of the domain.…”
Section: Type Errorsmentioning
confidence: 99%
“…Hage & Heeren (2006) identify a variety of general heuristics to improve the quality of type error messages, based on their teaching experience. Charguéraud (2014) presents a tabular format for type errors that can provide multiple explanations in a compact form. Heeren et al (2003), Christiansen (2014), andSerrano &Hage (2016) provide methods for library authors to specialize type errors with domain-specific knowledge.…”
Section: Improving Error Messagesmentioning
confidence: 99%