The Calculated Typer (Functional Pearl)
- Zac Garby,
- ,
- Graham Hutton
- University of Nottingham,
- ,
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOpen access
Publication Information
Output type
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOriginal language
EnglishPages from-to (Number of pages)
Pages 17 - 29 (13 pages)Publication milestones
- Published - 09/10/2025
Publication status
Published - 09/10/2025
Publisher
Association for Computing Machinery, United StatesISBN (Print)
9798400721472ISBN (Electronic)
9798400721472Publication IDs
- ORCID: /0000-0003-1600-8261/work/193884660
- Scopus: 105021401442
Host publication title
Proceedings of the 18th ACM SIGPLAN International Haskell SymposiumAbstract
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.
Access to documents
Related Event
Title
International Haskell Symposium
Event type
ConferenceDegree of recognition
International eventDate
12/10/2025 - 18/10/2025Location
Singapore SingaporeSingapore
