Comparing approaches to generic programming in Haskell

  • Authors:
  • Ralf Hinze;Johan Jeuring;Andres Löh

  • Affiliations:
  • Institut für Informatik III, Universität Bonn, Bonn, Germany;Department of Information and Computing Sciences, Utrecht University, Utrecht, The Netherlands;Institut für Informatik III, Universität Bonn, Bonn, Germany

  • Venue:
  • SSDGP'06 Proceedings of the 2006 international conference on Datatype-generic programming
  • Year:
  • 2006

Quantified Score

Hi-index 0.01

Visualization

Abstract

The last decade has seen a number of approaches to data-type-generic programming: PolyP, Functorial ML, 'Scrap Your Boiler-plate', Generic Haskell, 'Generics for the Masses', and so on. The approaches vary in sophistication and target audience: some propose full-blown programming languages, some suggest libraries, some can be seen as categorical programming methods. In these lecture notes we compare the various approaches to datatype-generic programming in Haskell. We introduce each approach by means of example, and we evaluate it along different dimensions (expressivity, ease of use, and so on).