Skip to search boxSkip to navigationSkip to main content

The Calculated Typer (Functional Pearl)

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Original language

English

Pages 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 States
9798400721472

ISBN (Electronic)

9798400721472

Publication IDs

  • ORCID: /0000-0003-1600-8261/work/193884660
  • Scopus: 105021401442

Host publication title

Proceedings of the 18th ACM SIGPLAN International Haskell Symposium

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.

Related Event

Title

International Haskell Symposium

Event type

Conference

Degree of recognition

International event

Date

12/10/2025 - 18/10/2025

Location

Singapore SingaporeSingapore