Journal article
Constrained type families
Proceedings of ACM on programming languages, Vol.1(ICFP), pp.1-28
08/29/2017
DOI: 10.1145/3110286
Abstract
We present an approach to support partiality in type-level computation without compromising expressiveness or type safety. Existing frameworks for type-level computation either require totality or implicitly assume it. For example, type families in Haskell provide a powerful, modular means of defining type-level computation. However, their current design implicitly assumes that type families are total, introducing nonsensical types and significantly complicating the metatheory of type families and their extensions. We propose an alternative design, using qualified types to pair type-level computations with predicates that capture their domains. Our approach naturally captures the intuitive partiality of type families, simplifying their metatheory. As evidence, we present the first complete proof of consistency for a language with closed type families.
Details
- Title: Subtitle
- Constrained type families
- Creators
- J. Garrett Morris - University of EdinburghRichard A. Eisenberg - Bryn Mawr College
- Resource Type
- Journal article
- Publication Details
- Proceedings of ACM on programming languages, Vol.1(ICFP), pp.1-28
- DOI
- 10.1145/3110286
- ISSN
- 2475-1421
- eISSN
- 2475-1421
- Language
- English
- Date published
- 08/29/2017
- Academic Unit
- Computer Science
- Record Identifier
- 9984259437102771
Metrics
10 Record Views