Quasiquoting Support for GHC

Quasiquoting is supported in GHC 6.10 and above. See the Quasiquotation tutorial on the Haskell wiki for a simple example. Note that the syntax has changed slightly from the syntax in the original paper.

Audrey Tang has backported this feature to GHC 6.8.3. Her patch is available here.

A C Quasiquoting Library

The language-c-quote library for quasiquoting C and variations, including OpenCL and partial support for CUDA, is available on hackage and on github.



  1. Mainland, G. 2007. Why It’s Nice to Be Quoted: Quasiquoting for Haskell. Proceedings of the ACM SIGPLAN 2007 Haskell Workshop (Freiburg, Germany, Sep. 2007), 73–82.
    DOI  PDF  BibTeX
      title = {Why It's Nice to Be Quoted: Quasiquoting for {{Haskell}}},
      booktitle = {Proceedings of the {{ACM SIGPLAN}} 2007 {{Haskell Workshop}}},
      author = {Mainland, Geoffrey},
      year = {2007},
      month = sep,
      series = {Haskell '07},
      pages = {73--82},
      address = {{Freiburg, Germany}},
      doi = {10.1145/1291201.1291211},
      acceptrate = {38},
      citations = {119}