Back to search

National University of Singapore

A systematic translation of guarded recursive data types to existential types

Abstract

dc:description.abstract

Guarded recursive data types (GRDTs) are a new language feature which allows to type check the different branches of case expressions under different type assumptions.We show that GRDTs can be translated to type classes with existential types (TCET).The translation to TCET might be problematic in the sense that common implementations such as the Glasgow Haskell Compiler (GHC) fail to accept the translated program. We provide for a refined translation from TCET to existential types (ET) based on a novel proof term construction method. The resulting ET program is accepted by GHC. Our work can be seen as the first formal investigation to relate the concepts of guarded recursive data types and (type classes with) existential types.

Degree

thesis:*
Name thesis:degree_name
MASTER OF SCIENCE
Year dc:date.issued
2005

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • WANG MENG
Advisors dc:contributor.supervisor
  • CHIN WEI NGAN
  • SULZMANN, MARTIN

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
WANG MENG (2005-09-15). A systematic translation of guarded recursive data types to existential types. ScholarBank@NUS Repository.
Dc Identifier Wos
NOT_IN_WOS

Chain of custody

source
Harvested from
National University of Singapore
Base URL
scholarbank.nus.edu.sg/oai/request
Last updated
2026-11-28
Source record
OAI-PMH GetRecord
citation

WANG MENG. A systematic translation of guarded recursive data types to existential types. 2005. https://scholarbank.nus.edu.sg/handle/10635/14876