Template meta-programming for Haskell
Authors:
Open Access
- 1 December 2002
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 37 (12) , 60-75
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.Keywords
This publication has 11 references indexed in Scilit:
- Macros as multi-stage computations2001
- Accomplishments and Research Challenges in Meta-programming2001
- Impact of economics on compiler optimization2001
- First-class macros have types2000
- Functional unparsingJournal of Functional Programming, 1998
- Dynamic typing as staged type inference1998
- Syntactic abstraction in schemeHigher-Order and Symbolic Computation, 1993
- Macros that work1991
- Hygienic macro expansion1986
- Special forms in Lisp1980