In lisp, this sort of thing could be handled by a macro.
So why not apples-to-apples and use Template Haskell to do it?
Re:Haskell’s Niche: Hard Problems
by loup-vaillant on Monday March 14, 2011 @01:03PM
(#2323304)
Because it doesn't fit my original argument, that Haskell's combinatorial approach can do much (though not all) of what Lisp macros do.
Actual code I wrote (for https://github.com/stucchio/Mp3FS ):
In lisp, this sort of thing could be handled by a macro.