Hetris is an example of a literate program designed to use and demonstrate Haskell2LaTeX for the pretty-printing. The code is available if you want a game and the document produced by running Haskell2LaTeX then LaTeX is also available for your reading pleasure. As part of my experimentation with Template Haskell I have looked at tidying up the repetitive foreign imports and C wrappers used by the