Decomposable Type Highlighting for Bidirectional Type and Cast System
Programming Languages
2026-07-15 v1
Abstract
We explore how to provide programmers with an interactive interface for explaining the process by which static types and dynamic casts are derived, with the goal of improving the debugging of static and dynamic type errors. To this end, we define mathematical foundations for a decomposable highlighting system within a bidirectional system and show how these can be propagated through dynamic types in a cast system. Our prototype implementation in the gradually typed Hazel language includes a web-based user interface, through which we highlight the importance of type-level debugging.
Cite
@article{arxiv.2607.13727,
title = {Decomposable Type Highlighting for Bidirectional Type and Cast System},
author = {Max Carroll and Anil Madhavapeddy and Patrick Ferris},
journal= {arXiv preprint arXiv:2607.13727},
year = {2026}
}
Comments
10 pages, 4 figures, presented at HATRA 2025