Template meta-programming for Haskell
Tim Sheard, Simon Jones · 2002
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
Cited by 545 works. doi:10.1145/581690.581691
Authors
References
- The Computer Science Department.
- Hygienic macro expansion
- Multi-stage programming with explicit annotations
- Syntactic abstraction in scheme
- Macros that work
- Modern C++ Design
- Dynamic typing as staged type inference
- Special forms in Lisp
- Accomplishments and Research Challenges in Meta-programming
- Derivable Type Classes