CPL - Chalmers Publication Library
| Utbildning | Forskning | Styrkeområden | Om Chalmers | In English In English Ej inloggad.

Prototyping Generic Programming in Template Haskell

Ulf Norell (Institutionen för datavetenskap, Funktionell programmering) ; Patrik Jansson (Institutionen för datavetenskap, Funktionell programmering ; Institutionen för datavetenskap, Programmeringslogik)
Lecture Notes in Computer Science (0302-9743). Vol. 3125 (2004), p. 314-333.
[Artikel, refereegranskad vetenskaplig]

Generic Programming deals with the construction of programs that can be applied to many different datatypes. This is achieved by parameterizing the generic programs by the structure of the datatypes on which they are to be applied. Programs that can be defined generically range from simple map functions through pretty printers to complex XML tools. The design space of generic programming languages is largely unexplored, partly due to the time and effort required to implement such a language. In this paper we show how to write flexible prototype implementations of two existing generic programming languages, PolyP and Generic Haskell, using Template Haskell, an extension to Haskell that enables compile-time meta-programming. In doing this we also gain a better understanding of the differences and similarities between the two languages.

Proceedings paper in: 7th International Conference on Mathematics of Program Construction, Stirling, SCOTLAND. JUL 12-14, 2004

Denna post skapades 2006-10-09. Senast ändrad 2014-09-02.
CPL Pubid: 10128


Läs direkt!

Länk till annan sajt (kan kräva inloggning)

Institutioner (Chalmers)

Institutionen för datavetenskap, Funktionell programmering (2002-2004)
Institutionen för datavetenskap, Programmeringslogik (2002-2004)


Teoretisk datalogi

Chalmers infrastruktur