The Calculated Typer (Functional Pearl)

Zac Garby, Patrick Bahr, Graham Hutton

Research output: Conference Article in Proceeding or Book/Report chapterArticle in proceedingsResearchpeer-review

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 languageEnglish
Title of host publicationProceedings of the 18th ACM SIGPLAN International Haskell Symposium
Number of pages13
PublisherAssociation for Computing Machinery
Publication date9 Oct 2025
Pages17 - 29
ISBN (Print)9798400721472
ISBN (Electronic)9798400721472
DOIs
Publication statusPublished - 9 Oct 2025
EventHaskell Symposium - Singapore , Singapore, Singapore
Duration: 12 Oct 202518 Oct 2025
Conference number: 18
https://conf.researchr.org/home/icfp-splash-2025/haskellsymp-2025

Conference

ConferenceHaskell Symposium
Number18
LocationSingapore
Country/TerritorySingapore
CitySingapore
Period12/10/202518/10/2025
Internet address

Fingerprint

Dive into the research topics of 'The Calculated Typer (Functional Pearl)'. Together they form a unique fingerprint.

Cite this