Prototyping generic programming in Template Haskell

被引:0
|
作者
Norell, U [1 ]
Jansson, P [1 ]
机构
[1] Chalmers Univ Technol, S-41296 Gothenburg, Sweden
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:314 / 333
页数:20
相关论文
共 50 条
  • [21] Deterministic Parallel Programming with Haskell
    Coutts, Duncan
    Loh, Andres
    COMPUTING IN SCIENCE & ENGINEERING, 2012, 14 (06) : 36 - 42
  • [22] Learn Physics by Programming in Haskell
    Walck, Scott N.
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2014, (170): : 67 - 77
  • [23] Distributed programming in Haskell with ports
    Huch, F
    Norbisrath, U
    IMPLEMENTATION OF FUNCTIONAL LANGUAGES, 2001, 2011 : 107 - 121
  • [24] Mobile Game Programming in Haskell
    Zeller, Christina
    Perez, Ivan
    FARM'19: PROCEEDINGS OF THE 7TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON FUNCTIONAL ART, MUSIC, MODELING, AND DESIGN, 2019, : 37 - 48
  • [25] Alloy: Fast Generic Transformations for Haskell
    Brown, Neil C. C.
    Sampson, Adam T.
    HASKELL'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN HASKELL SYMPOSIUM, 2009, : 105 - 116
  • [26] Probabilistic functional programming in Haskell
    Erwig, M
    Kollmansberger, S
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2006, 16 (21-34) : 21 - 34
  • [27] Optimising embedded DSLs using template Haskell
    Seefried, S
    Chakravarty, M
    Keller, G
    GENERATIVE PROGRAMMING AND COMPONENT ENGINEERING 2004, PROCEEDINGS, 2004, 3286 : 186 - 205
  • [28] Embedding a hardware description language in template Haskell
    O'Donnell, JT
    DOMAIN-SPECIFIC PROGRAM GENERATION, 2003, 3016 : 143 - 164
  • [29] Staging with Class A Specification for Typed Template Haskell
    Xie, Ningning
    Pickering, Matthew
    Loh, Andres
    Wu, Nicolas
    Yallop, Jeremy
    Wang, Meng
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2022, 6 (POPL):
  • [30] A Tutorial on Parallel and Concurrent Programming in Haskell
    Jones, Simon Peyton
    Singh, Satnam
    ADVANCED FUNCTIONAL PROGRAMMING, 2009, 5832 : 267 - 305