Hetris
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 Haskell Curses interface by
automatically generating them at compile-time. You can have
a look at the
modified code (the
relevant changes are in Hetris/Curses.hsc ) and
my current GHC patch.
Finally, here is a screenshot of Hetris in action.
Back to the main page.
|