Article view

Polytypic Functions Over Nested Datatypes

By Ralf Thomas Walter Hinze

Article information

Publication
Published 1 January 1999
Institutions at publication
University of Bonn
13 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
4 Countries with citations Where the citing authors were FULL LIST: Countries with citations
Usage Phase 3: not collected yet

Abstract

The theory and practice of polytypic programming is intimately connected with the initial algebra semantics of datatypes. This is both a blessing and a curse. It is a blessing because the underlying theory is beautiful and well developed. It is a curse because the initial algebra semantics is restricted to so-called regular datatypes. Recent work by R. Bird and L. Meertens [3] on the semantics of non-regular or nested datatypes suggests that an extension to general datatypes is not entirely straightforward. Here we propose an alternative that extends polytypism to arbitrary datatypes, including nested datatypes and mutually recursive datatypes. The central idea is to use rational trees over a suitable set of functor symbols as type arguments for polytypic functions. Besides covering a wider range of types the approach is also simpler and technically less involving than previous ones. We present several examples of polytypic functions, among others polytypic reduction and polytypic equality. The presentation assumes some background in functional and in polytypic programming. A basic knowledge of monads is required for some of the examples.

Citations per year

Citations per year
YearCitations
2017 0
2018 0
2019 1
2020 0
2021 0
2022 0
2023 0
2024 0
2025 0
2026 0

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

The newest works citing this article
Citing workYearPublished in
Lambda: the ultimate sublanguage (experience report) 2019 Proceedings of the ACM on Programming Languages
A principled approach to programming with nested types in Haskell 2009 LISP and Symbolic Computation
Genericity‚ extensibility and type−safety in the Visitor pattern 2007 OpenGrey (Institut de l'Information Scientifique et Technique)
A Polymorphic Lambda-Calculus with Sized Higher-Order Types 2006
Exploring Generic Haskell 2004 Utrecht University Repository (Utrecht University)
Substitution in non-wellfounded syntax with variable binding 2004 Theoretical Computer Science
Substitution in Non-wellfounded Syntax with Variable Binding 2003 Electronic Notes in Theoretical Computer Science
Polytypic values possess polykinded types (self-citation) 2002 Science of Computer Programming
Typed Logical Variables in Haskell 2001 Electronic Notes in Theoretical Computer Science
Zur Kontextanalyse einer algebraischen Programmiersprache 2001 DepositOnce

All 13 citing works

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • Changes the map only; the tables list the figures.
  • USAGE Phase 3
Authors by country
CountryAuthors
Germany1
Citations from 4 countries
Citations by the country of the citing authors
CountryCitations
Germany5
Estonia2
United Kingdom2
The Netherlands1

Where the authors of the works citing these were, from the citing works OpenAlex lists. A citation whose authors were in several countries counts in each.