[Haskell-cafe] Code that writes code

Bill Atkins watkins at alum.rpi.edu
Sat Aug 21 23:20:11 EDT 2010


Have you looked at creating Template Haskell splices to generate this for you?

On Friday Aug 20, 2010, at 2:21 PM, Andrew Coppin wrote:

> All I'm actually using it to do is generate a set of fixed-size containers (each of which has a bazillion class instances). I've got a variable-sized container, but sometimes it's useful to statically guarantee that a container is a specific size. In addition, by being fixed-size you can get a few small performance gains. That's really all I'm using autogeneration for.



More information about the Haskell-Cafe mailing list