Paper record

W2009775190

Template meta-programming for Haskell

Tim Sheard, Simon Jones

Year
2002
Venue
International Symposium on Haskell
References
13
Cited by
473

Details and counts from OpenAlex.

Abstract

We propose a new extension to the purely functional programming language Haskell that supports compile-time meta-programming. The purpose of the system is to support the algorithmic construction of programs at compile-time. The ability to generate code at compile time allows the programmer to implement such features as polytypic programs, macro-like expansion, user directed optimization (such as inlining), and the generation of supporting data structures and functions from existing data structures and functions. Our design is being implemented in the Glasgow Haskell Compiler, ghc. 1