Skip to main content
Kent Academic Repository

Same coeffect, different base: Connecting two dominant approaches to graded types

Liepelt, Vilem, Marshall, Danielle, Orchard, Dominic (2026) Same coeffect, different base: Connecting two dominant approaches to graded types. Proceedings of the ACM on Programming Languages, 10 (ICFP). pp. 721-750. E-ISSN 2475-1421. (doi:10.1145/3828697) (KAR id:116035)

Abstract

Graded types provide a way to augment a type system with fine-grained information, e.g., to track side effects or context dependence and resource use (called coeffects). Graded types for coeffects have found their way into languages such as Haskell, Idris, and Granule, enabling resourceful reasoning via coeffect analysis with varying levels of generality. Two separate lineages of graded coeffect system have emerged in the last decade: those in which coeffect annotations are pervasive, requiring annotations on function types (which we call graded-base) and those in which coeffects are added by way of a graded modal type operator atop linear types (which we call linear-base). The latter has its origins in Girard’s Linear Logic which has been a rich humus for programming language research focused on resources, whereas the graded-base approach emerged in the mid-2010s, seeing rapid adoption in programming language theory and practice, e.g. in QTT and Linear Haskell. The relationship between these two styles has however remained an open question. We answer this question by giving translations between pairs of calculi of both lineages that we prove type-, grade- and operational-semantics preserving. We show that the same notions of context dependence can be expressed in either style, building a bridge between the two lineages that enables transfer of results and ideas, while helping language designers to make better informed choices.

Item Type: Article
DOI/Identification number: 10.1145/3828697
Uncontrolled keywords: graded modal types, graded types, linear types, coeffects
Subjects: Q Science > QA Mathematics (inc Computing science)
Institutional Unit: Schools > School of Computing
Former Institutional Unit:
There are no former institutional units.
Funders: Engineering and Physical Sciences Research Council (https://ror.org/0439y7842)
Depositing User: Vilem Liepelt
Date Deposited: 27 Aug 2026 09:21 UTC
Last Modified: 02 Sep 2026 02:46 UTC
Resource URI: https://kar.kent.ac.uk/id/eprint/116035 (The current URI for this page, for reference purposes)

University of Kent Author Information

  • Depositors only (login required):

Total unique views of this page since July 2020. For more details click on the image.