New blog post: Template Haskell
The first part is easy: [| foo |] gets me Q Exp. and within Q I can do whether I want with Exp. but getting out of Q is tough
If I wanted to generate code, easy: $(...). But pretty printing expressions to strings and escaping Q? More difficult
A sleep and a shower and I think I have figured this out.
I might have to thank Mira showers in my thesis
Kernel.org after-party social