You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the current practice of simply concatenating Strings and dumping the result in a .hs file is simple, I think the general plan should be to do all the staging as part of (Typed?) Template Haskell meta programming. A very reasonable step in-between is to generate a TH AST in the backend which is subsequently pretty-printed to generate the .hs file.
The text was updated successfully, but these errors were encountered:
I wonder, @RyanGlScott could clarify, how well the "pretty printing TH expressions / declarations roundtrips".
I recall he spend some time fixing issues, and I'm pretty sure that is subtle.
I mean, that is great, but probably template-haskell "maintainers" (which AFAIK is Ryan alone?) should be aware of this "real production" use scenario.
Although the current practice of simply concatenating Strings and dumping the result in a .hs file is simple, I think the general plan should be to do all the staging as part of (Typed?) Template Haskell meta programming. A very reasonable step in-between is to generate a TH AST in the backend which is subsequently pretty-printed to generate the .hs file.
The text was updated successfully, but these errors were encountered: