[Haskell-cafe] Template Haskell examples?
byorgey at gmail.com
Tue Dec 4 12:21:40 EST 2007
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...
More information about the Haskell-Cafe