The Calculated Typer (Functional Pearl)

Zac Garby, Patrick Bahr, Graham Hutton

Publikation: Konference artikel i Proceeding eller bog/rapport kapitelKonferencebidrag i proceedingsForskningpeer 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.
OriginalsprogEngelsk
TitelProceedings of the 18th ACM SIGPLAN International Haskell Symposium
Antal sider13
ForlagAssociation for Computing Machinery
Publikationsdato9 okt. 2025
Sider17 - 29
ISBN (Elektronisk)9798400721472
DOI
StatusUdgivet - 9 okt. 2025
Begivenhed18th ACM SIGPLAN International Haskell Symposium - Singapore, Singapore
Varighed: 12 okt. 202518 okt. 2025
Konferencens nummer: 2025

Konference

Konference18th ACM SIGPLAN International Haskell Symposium
Nummer2025
Land/OmrådeSingapore
BySingapore
Periode12/10/202518/10/2025

Fingeraftryk

Dyk ned i forskningsemnerne om 'The Calculated Typer (Functional Pearl)'. Sammen danner de et unikt fingeraftryk.

Citationsformater