I want to permit the user to write Haskell but then do stuff with the parsed expression tree and write it out to files

Show thread

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

Show thread
Follow

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

Show thread
Sign in to participate in the conversation
Kernel.org social

Kernel.org after-party social