[Haskell-cafe] Template Haskell examples?

2007-12-04 Thread Brent Yorgey
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

Re: [Haskell-cafe] Template Haskell examples?

2007-12-06 Thread Ian Lynagh
On Tue, Dec 04, 2007 at 12:21:40PM -0500, Brent Yorgey wrote: > > 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