[Haskell-cafe] Template Haskell examples?

Brent Yorgey byorgey at gmail.com
Tue Dec 4 12:21:40 EST 2007

Hi all,

I'm looking for good examples of using Template Haskell to evaluate CAFs at
compile time, e.g. if I have some expensive-to-calculate lookup table which
I'd rather have evaluated at comile time and included in the executable as a
constant value, rather than having it computed every time the executable is
run.  I know I've seen examples of this before, but now that I would
actually like to study such an example, I can't seem to find any.  Any
suggestions?  Or can anyone make up a simple example on the spot? =)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071204/14d12f7f/attachment-0001.htm

More information about the Haskell-Cafe mailing list