Abstract
We present a calculational approach to the design of type checkers, showing how they can be derived from behavioural specifications using equational reasoning. We focus on languages whose semantics can be expressed as a fold, and show how the calculations can be simplified using fold fusion. This approach enables the compositional derivation of correct-by-construction type checkers based on solving and composing fusion preconditions. We introduce our approach using a simple expression language, to which we then add support for exception handling and checked exceptions.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the 18th ACM SIGPLAN International Haskell Symposium |
| Number of pages | 13 |
| Publisher | Association for Computing Machinery |
| Publication date | 9 Oct 2025 |
| Pages | 17 - 29 |
| ISBN (Print) | 9798400721472 |
| ISBN (Electronic) | 9798400721472 |
| DOIs | |
| Publication status | Published - 9 Oct 2025 |
| Event | Haskell Symposium - Singapore , Singapore, Singapore Duration: 12 Oct 2025 → 18 Oct 2025 Conference number: 18 https://conf.researchr.org/home/icfp-splash-2025/haskellsymp-2025 |
Conference
| Conference | Haskell Symposium |
|---|---|
| Number | 18 |
| Location | Singapore |
| Country/Territory | Singapore |
| City | Singapore |
| Period | 12/10/2025 → 18/10/2025 |
| Internet address |
Fingerprint
Dive into the research topics of 'The Calculated Typer (Functional Pearl)'. Together they form a unique fingerprint.Datasets
-
Haskell and Agda code for the article "The Calculated Typer"
Garby, Z. (Creator), Bahr, P. (Creator) & Hutton, G. (Creator), ZENODO, 6 Aug 2025
Dataset: Software