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
Follow

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

Show thread

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