Back to search

University of Pennsylvania

Dependent Types In Haskell: Theory And Practice

Abstract

dc:description.abstract

Haskell, as implemented in the Glasgow Haskell Compiler (GHC), has been adding new type-level programming features for some time. Many of these features---generalized algebraic datatypes (GADTs), type families, kind polymorphism, and promoted datatypes---have brought Haskell to the doorstep of dependent types. Many dependently typed programs can even currently be encoded, but often the constructions are painful. In this dissertation, I describe Dependent Haskell, which supports full dependent types via a backward-compatible extension to today's Haskell. An important contribution of this work is an implementation, in GHC, of a portion of Dependent Haskell, with the rest to follow. The features I have implemented are already released, in GHC 8.0. This dissertation contains several practical examples of Dependent Haskell code, a full description of the differences between Dependent Haskell and today's Haskell, a novel dependently typed lambda-calculus (called Pico) suitable for use as an intermediate language for compiling Dependent Haskell, and a type inference and elaboration algorithm, Bake, that translates Dependent Haskell to type-correct Pico. Full proofs of type safety of Pico and the soundness of Bake are included in the appendix.

Degree

thesis:*
Department dc:contributor.department
Computer and Information Science
Year dc:date.issued
2016

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Eisenberg, Richard Alan
Advisor dc:contributor.advisor
  • Stephanie C. Weirich

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • Richard Alan Eisenberg
Language dc:language
en

Identifiers

dc:identifier.*
Dc Identifier Other
4052
edissertations/2266
11636808

Chain of custody

source
Harvested from
University of Pennsylvania
Base URL
repository.upenn.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Eisenberg, Richard Alan. Dependent Types In Haskell: Theory And Practice. 2016. https://repository.upenn.edu/handle/20.500.14332/29166