Generic functional programming with types and relations
Richard S. Bird, Oege de Moor, Paul F. Hoogendijk · Journal of Functional Programming · 1996
Abstract A generic functional program is one which is parameterised by datatype. By installing specific choices, for example lists or trees, different programs are obtained that are, nevertheless, abstractly the same. The purpose of this paper is to explore the possibility of deriving generic programs. Part of the theory of lists that deals with segments is recast as a theory about ‘segments’ in a wide class of datatypes, and then used to pose and solve a generic version of a well-known problem.
Cited by 51 works. doi:10.1017/s0956796800001556 Open-access PDF
Authors
References
- Toposes, Triples and Theories
- Category Theory For Computing Science
- Topoi - The Categorial Analysis of Logic
- Deforestation: transforming programs to eliminate trees
- Basic Category Theory for Computer Scientists
- Lectures on Constructive Functional Programming
- The Algebra of Programming
- Basic category theory for computer scientists
- Research topics in functional programming
- Algebraic specification of data types: A synthetic approach