Prototyping Generic Programming in Template Haskell [chapter]

Ulf Norell, Patrik Jansson
<span title="">2004</span> <i title="Springer Berlin Heidelberg"> <a target="_blank" rel="noopener" href="https://fatcat.wiki/container/2w3awgokqne6te4nvlofavy5a4" style="color: black;">Lecture Notes in Computer Science</a> </i> &nbsp;
Generic Programming deals with the construction of programs that can be applied to many dierent 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 dened 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 eort required to implement such a language. In this
more &raquo; ... aper we show how to write exible 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 dierences and similarities between the two languages.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1007/978-3-540-27764-4_17">doi:10.1007/978-3-540-27764-4_17</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/b4mbjaxomnggncabtd3ckbjkuy">fatcat:b4mbjaxomnggncabtd3ckbjkuy</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20110401090259/http://www.cse.chalmers.se/~ulfn/papers/genericth.pdf" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/a2/ce/a2ce6e76b6278d612e2571e7bd78ff7d1835f1e8.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1007/978-3-540-27764-4_17"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="external alternate icon"></i> springer.com </button> </a>